You are here: [SOLVED]Re: Hi there [htmlspecialchars]Does nothing « PHP Programming Language « IT news, forums, messages
[SOLVED]Re: Hi there [htmlspecialchars]Does nothing

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 :
> >
> > &lt; a href
>
> It outputs &lt;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 &lt; in a browser: either
> double yoiu htmlentities/htmlspecialchars (so,
> htmlspecialchars(htmlspecialchars($string))), or
> str_replace('&','&amp;',$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é

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация