You are here: Re: [OT] Need help with regexp « PHP Programming Language « IT news, forums, messages
Re: [OT] Need help with regexp

Posted by Justin Koivisto on 06/13/05 16:37

Anders Eriksson wrote:

> Hello!
>
> This maybe a bit of topic but I haven't found any other group.
>
> I need to replace all special character in a html page with the coded
> version. E.g. & -> & å -> å ...
>
> The problem I have is when the html already has been converted, i.e. it
> already says & which then will be converted to &
>
> How do I specify an regexp that will change & to & but will not change
> & to &
>
> // Anders

Have you tried htmlentities(), htmlspecialchars() or
get_html_translation_table() ?

--
Justin Koivisto - justin@koivi.com
http://koivi.com

 

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

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