Using sitefinity we get a lot of admins getting "Enter happy" and generating obnoxious amounts of <p> tags or empty divs, or something... I'd love a filter such that when they save it'd go through and clean up (remove) the empty crap content. <p>some text</p> <-- FINE <p></p> <-- GONE <p><br/></p> <-- GONE <p>Final bit of text</p> <-- FINE ...etc
Hi Steve,
Check out the RemoveExtraBreaks filter, the purpose of which is to strip all extra brakes inside some tags like p, h1, etc.
Another approach is to implement a Custom Content Filter.
Best,
Rumen