[SOLVED] Escaped single quote not rendered properly in html
Posted: Mon Feb 14, 2005 8:27 am
In an editing screen, I populate forms with previously entered values.
I have set php_value magic_quotes_gpc 0 in .htaccess
If $title contains an apostrophe and is escaped, like $title='Bob''s' the HTML is still rendered as Bob\.
textarea single quotes render ok:
i.e. Bob's
Anyone know why the escaped single quote in the input=text area is not rendering single quotes?
I have set php_value magic_quotes_gpc 0 in .htaccess
Code: Select all
<input type='text' name='title' value='$title' size='50'>textarea single quotes render ok:
Code: Select all
<textarea name='title'>$title</textarea>Anyone know why the escaped single quote in the input=text area is not rendering single quotes?