You are here: Escaping using htmlentities « PHP « IT news, forums, messages
Escaping using htmlentities

Posted by W Luke on 09/27/06 11:07

Hi.

htmlentities has worked pretty well so far for me...except when it
comes across something like "ñw" or "ñ0w" in an RSS feed (v2)

It tries to convert the &ntilde - and it does, but because the ñ
doesn't have a space next to the w or the 0w, it breaks the XML and it
comes out as ñ0w which, I think, is "bad XML"

I thought ampersands were my biggest worry, but this has got me really
stumped! I'm not even sure if I'm *right* in thinking the problem is
the lack of spaces between the "special" characters. Can anyone shed
any light on this?

Thanks

--
Will The Corridor of Uncertainty http://www.cricket.mailliw.com/
- Sanity is a madness put to good use -

 

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

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