Hi,
After using addslashes() to the inputs to some text fields, I need to remove them for display. When I use stripslashes() to do so, the strings with single quotes comes out fine, but in the strings with quotation marks, the quotation mark itself and any text following it do not appear. Any ideas why not?
Here's the code:
$answer01 = stripslashes($answer);
$input = "<input type=text name=answer value=\"$answer01\">";
$patterns = '/<_>/';
$name = preg_replace($patterns, $input, $title);
using this:
isn\'t comes out isn't
bears\" comes out bears
Thanks for your help.