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]
|