php / mysql/ apache

I tried the following using the call to htmlspecialchars()

not sure why it is insn't working.

I get the output:
<a href='test'>Test</a>

Thank you.
TR
..................
//script

<?
$new = htmlspecialchars("<a href='test'>Test</a>", ENT_QUOTES);
echo $new;
?>

// this is what is output:<a href='test'>Test</a>
// instead of this...
// &lt;a href=&#039;test&#039;&gt;Test&lt;/a&gt;

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to