Forum OpenACS Development: closing open tags in HTML fragments

Collapse
Posted by Joel Aufrecht on
In my blog, I have HTML text bodies of unlimited size, but I cut the entry on the front page to about 200 words.  If this ends up cutting out html close tags, the html for the page as a whole can be broken, and is usually different for different browsers.  Is there a simple way to fix this?  If not, how about a new kind of noquote flag, like .closequote, which checks for open tags and closes them all in the right order?
Collapse
Posted by Simon Carstensen on
string_truncate should do the trick.