Re: Preparing site content for RSS XML feed
| From: | Brice | Date: | Thu, 02 Feb 2006 08:46:48 +0000 |
| Subject: | Re: Preparing site content for RSS XML feed | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-229697@lists.php.net to get a copy of this message | ||
On 2/2/06, Murray @ PlanetThoughtful <lists@ulblog.org> 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
>
>