Hi All, I'm wondering if anyone has a filter which safely truncates html so as not to chop through tags.
A problem that I find I have quite often is that I want to provide a summary of the content (eg. on a homepage) with a more info link... I run into issues with the content being truncated mid tag or not having correct closing tags so then it breaks the formatting for the rest of the page. I've tried removing as many tags as I can (via the filter), however I would like to keep things like images though sometimes they get chopped up causing broken images :( Any help would be greatly appreciated.