|
Posted by universalbitmapper on 06/25/06 06:05
Rik wrote:
> 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
Hi Rik,
I have done like you wrote, indeed I see &+lt+; if I select "source" in
IE6.
Many thanks
JiBé
[Back to original message]
|