Forums / Cotonti / Support / How to limit RSS feed output

Prevent content theft

foxhound
#34481 2012-05-31 12:29

Thanks for that code Trustmaster!
I added something extra to it to allow certain html codes just so the RSS output would not look idiotic or so non-apealing RSS readers would just end the RSS readers. This is the code I use now:

return mb_substr(strip_tags($text, '<strong><a><i><ul><ol><center><br><img>'), 0, 700)." ........... <br /><br /><span class=\"readmore\"><a href=\"".$pag_pageurl."\">".'Read the full article on Armaholic'."</a></span><hr style=\"size:5px;\">";


 

<img src="http://www.armaholic.com/datas/thumbs/green-sea-battalion-uniforms-version-03-preview_4.jpg" alt="green-sea-battalion-uniforms-version-03-" />