Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

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
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...