Bugger! some of the " above should have been "
corrections;
$text = str_replace("\"", """, $text);
should always be replaced by $amp;quot; anyway
Si Watts wrote:
Assuming the " are simple parts of text and not part of an html entry you are adding to the db then why not just replace them with a str_replace();
$text = str_replace("\"", """, $text);
The stripslashes should not be done before adding to the database, only once you call the database entries back and want to display them. " will cause havoc with html in some browsers anyway unless it is part of a tag, so should always be replaced by " anyway