I'm using strip_tags to format some rss feeds and produce in html. It works fine until it picks up on a tag which doesn't get closed within the allowable word limit.
PHP Code:
$desc = strip_tags(summary($item['description'],35),'<img>,<br />');
The code is picking up 100 posts but stops when an individual item starts with the <img> tag but it isn't closed within the 35 words.
Is there a way that I can escape this while still using the <img> tag as an allowed_tag?
|