If $val is the following:
....Just revamped the site's Content Management Application I built.. so do
bear in mind.. sorry!
Phil
stripslashes(ht mlspecialchars( $val)) should produce the following, or so I
thought:
<input type=hidden name=alert value="...Just revamped the site's Content
Management Application I built.. so do bear in mind..
sorry!<br> ;<br>Phil ">
Instead, I get:
<input type=hidden name=alert value="...Just revamped the site\'s Content
Management Application I built.. so do bear in mind.. sorry!
Phil">
What combo of stripslashes() and htmlspecialchar s() do I use to ensure I get
a single-line entity from an HTML textarea value that could have anything in
it, plain and simple?
Phil