Dennis Dam wrote:
Hi Slobodan,

I reviewed the htmlcleaner code concerning the cleanup of BRs, and concluded
that the htmlcleaner does indeed clean up "stand alone" BR elements, and
other empty elements (e.g. empty <p> elements, or a <p> element with only a
<br> element inside, etc.).
I guess the logic behind that is that it <br> elements should not be used
for styling purposes. What is the reason you want to have an empty <br>
element at the end? Wouldn't it be better to use explicit CSS styling in the
frontend website, e.g. put a CSS class on the parent tag of the html
contents with a bigger bottom margin? :)

One valid usecase might be anchors, these also get "cleaned"
Is there a way to stop the cleaner from clean "empty" anchor tags?

regard,
shane
********************************************
Hippocms-dev: Hippo CMS development public mailinglist

Searchable archives can be found at:
MarkMail: http://hippocms-dev.markmail.org
Nabble: http://www.nabble.com/Hippo-CMS-f26633.html

Reply via email to