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
[Back to original message]
|