You are here: Re: Preparing a html string for rss « PHP Programming Language « IT news, forums, messages
Re: Preparing a html string for rss

Posted by MW on 12/02/07 21:27

Ciaran wrote:
> Anyone have/know of a function that will clean a html string of all
> tags and invalid characters, ready for an RSS feed in iso-8859-1
> encoding?
>
> I'm using strip_tags at present but it's not catching things like euro
> signs which is stopping my feed from validating.
>
> Thanks,
> Ciarán

Try mb_convert_encode to convert to US-ASCII
http://us2.php.net/manual/en/function.mb-convert-encoding.php

 

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

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