[PHP] Re: Preparing site content for RSS XML feed

2006-02-02 Thread Brice
On 2/2/06, Murray @ PlanetThoughtful [EMAIL PROTECTED] 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



[PHP] Re: Preparing site content for RSS XML feed

2006-02-02 Thread James Benson


Murray @ PlanetThoughtful 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)?
 
 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
 

-- 



Why dont you look at other feeds see how they do this?


Enclosing the HTML data within a cdata section should suffice!





James



-

Master CIW Designer  http://www.ciwcertified.com
Zend Certified Engineer  http://www.zend.com


http://www.jamesbenson.co.uk

-

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