I have user submitted articles on my site. Most of the time they are copied from MS Word and have code such as
“,
‘ and
, in it.
My website has an XHTML Doctype and doesn't like these when I try validate my website. Is there any way to replace them? I tried this but it isn't working:
PHP Code:
$article = str_replace("“", "\"", $article);