Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.

Update Plugin: Empty Tag Cleaner (V1.0)

+3 votes
365 views
asked May 28, 2013 in Plugins by sama55
edited Dec 19, 2014 by sama55

This is tiny tool plugin for removing empty HTML tag. This plugin removes also HTML tag including white-space and new-line in text-node as empty tag. Although empty tag can be erased by CSS, "empty" pseudo class of CSS3 does not work effectively, when the text node of tag has whitespace or newline. This plugin deletes empty tag, after removing whitespace and newline of tag which were specified in option by jQuery.

Screenshot

Compatibility

1.5.x, 1.6.x, 1.7 (2014/12/19 Updated)

Download

Best regards

Q2A version: 1.5.x, 1.6.x, 1.7
commented May 28, 2013 by Scott
Where do those empty tags come from? I think they would be better to be removed in the theme.
commented May 28, 2013 by sama55
For example, when widget judges login state etc. and outputs nothing, empty tag is outputted. Essentially, it may be coped with Q2A core or widget.

Please log in or register to answer this question.

...