Re: Preparing site content for RSS XML feed

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 2/2/06, Murray @ PlanetThoughtful <lists@xxxxxxxxxx> wrote:
> Hi All,
>
> I currently generate a simple rss.xml file for syndication from my site,
> containing nothing more than the subject of the post and a link to the
> article on my site.
>
> I'd like to syndicate the the actual content of each of the posts, but
> as I understand it RSS / XML is somewhat demanding in what it expects of
> how various html entities are treated etc?
>
> I don't suppose, by any chance, that there are any PHP tools that can be
> easily factored in to a process to take content that would include
> normal HTML (ie DIV and SPAN tags, links, TABLEs etc)?

Why don't you use htmlspecialchars() and utf8_encode() for this?

Brice

> Failing that, does anyone know of a good guide on what steps need to be
> taken to create a valid RSS feed where the content contains HTML?
>
> Any help appreciated!
>
> Much warmth,
>
> Murray
>
> --
> "Lost in thought" :-
> http://www.planetthoughtful.org
>
> "A blog devoted to urban legends,
>  superstitions, ghost stories, and
>  all things folkloric." :-
>
> http://www.ulblog.org
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux