Htmlspecialchars
Posted: Tue Aug 19, 2008 11:48 am
Hello,
I am using this code (part of exporting rdf feed):
When I test it on localhost (PHP 5.2.3), then apostrophes are replaced into ' correctly (and also other characters).
When I use it on webhosting (PHP 4.4.2) then it does not work.
I am using this code (part of exporting rdf feed):
Code: Select all
$title = stripslashes($row['title']);
$title = "<title>" . htmlspecialchars($title,ENT_QUOTES) . "</title>\n";When I use it on webhosting (PHP 4.4.2) then it does not work.