I've tried to execute the below mentioned PHP code (which is directly from PHP manual)
But it didn't work as it supposed I mean I got the output like the following not like what they claim in the manual.PHP Code:<?php
$str = "A 'quote' is <b>bold</b>";
// Outputs: A 'quote' is <b>bold</b>
echo htmlentities($str);
// Outputs: A 'quote' is <b>bold</b>
echo htmlentities($str, ENT_QUOTES);
?>
I am using PHP version 5.2.0Code:A 'quote' is <b>bold</b>A 'quote' is <b>bold</b>
I wonder why it is not working as it supposed.
Can any please test and let me know about it?
Thanks in advance
regards



Reply With Quote
Bookmarks