Jump to content
Sign in to follow this  
georgec

XML CDATA and some other suggestions

Recommended Posts

Might be a good idea to encapsulate title, description, and category and category items to take care of the "&"s and "<"s

 

		
	echo "<title><![CDATA[$headline]]></title>\n";
	echo "<pubDate>$date</pubDate>\n";
	echo "<description><![CDATA[$content]]></description>\n";
	echo "<category><![CDATA[$article_topic]]></category>\n";

 

Also, if you're like me who utilizes Articles head desc. field for your SEO, you can use that field instead of regular description...

 

		//$content_1 = substr($content_rec['articles_description'], 0, 200);
	$content_1 = substr($content_rec['articles_head_desc_tag'], 0, 200);

 

Sorry for not specifying the exact lines. If you cant figure out how to find and replace the code.. you shouldnt be touching it :rolleyes:

 

- G

Edited by georgec

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×