Completed
Last Updated: 02 Mar 2022 12:15 by ADMIN
sitefinitysteve
Created on: 07 Nov 2013 19:01
Category: Editor
Type: Feature Request
3
Remove\Clean empty content filters
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
1 comment
ADMIN
Rumen
Posted on: 02 Mar 2022 12:15

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