|
Posted by Rik on 06/24/06 14:41
universalbitmapper wrote:
> Hi,
>
> $new = htmlspecialchars("<a href=", ENT_QUOTES, 'ISO-8859-15');
> echo $new;
>
> displays:
>
> <a href
>
> Instead of :
>
> < a href
It outputs <a href=, if you view it with a browser it display's <a href,
instead of making an 'a' element. View your source.
If you want to display you special characters like < in a browser: either
double yoiu htmlentities/htmlspecialchars (so,
htmlspecialchars(htmlspecialchars($string))), or
str_replace('&','&',$string) after you have replaced ther characters.
Grtz,
--
Rik Wasmus
[Back to original message]
|