When creating an rss feed that shows a subset of a larger html doc (first x characters) I've run into an issue where some tags begin in the "first x characters" but the ending tag is outside that range. This can cause some fun problems if the consumer of the feed is trying to render the html in the feed in that it can cause unexpected rendering issues in the page showing the feed.
I'm assuming this is a common problem that rss feed writers and readers solved long ago, but I cannot seem to figure out how to achieve it short of trying to parse the html in the feed and add missing end tags which could get messy. Any suggestions would greatly be appreciated. Thanks in advance.
Chris