hi,
I would like to know why htmlspecialchars and htmlentities are not working.
These examples, should produce the results indicated. They don't.
$new = htmlspecialchars("<a href='test'>Test</a>", ENT_QUOTES);
echo $new;
// Should output: <a href='test'>Test</a>
$str = "A 'quote' is <b>bold</b>";
echo htmlentities($str, ENT_QUOTES);
// should output: A 'quote' is <b>bold</b>
prints:
<a href='test'>Test</a> A 'quote' is <b>bold</b>
clearly, neither input string have been touched by these functions.
Is this a temporary issue that will be resolved ?
Is this a permanent feature that will never be resolved ?
Best wishes
Robray.
I would like to know why htmlspecialchars and htmlentities are not working.
These examples, should produce the results indicated. They don't.
$new = htmlspecialchars("<a href='test'>Test</a>", ENT_QUOTES);
echo $new;
// Should output: <a href='test'>Test</a>
$str = "A 'quote' is <b>bold</b>";
echo htmlentities($str, ENT_QUOTES);
// should output: A 'quote' is <b>bold</b>
prints:
<a href='test'>Test</a> A 'quote' is <b>bold</b>
clearly, neither input string have been touched by these functions.
Is this a temporary issue that will be resolved ?
Is this a permanent feature that will never be resolved ?
Best wishes
Robray.