Posted by jl on 12/17/93 11:57
>From the php manual I copied and pasted this example:
<?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);
?>
However, when I run it in my browser, the output is wrong:
A 'quote' is <b>bold</b>A 'quote' is <b>bold</b>
the < is not converted to < (no conversion is taking place)
Is there a configuration that would disable htmlentities?
Does anyone have any idea as to what would cause htmlentities to not
work?
Thanks!
jl
Navigation:
[Reply to this message]
|