Topic: keep_bad help/bug?
Try the following code, "elements" set to: ul, li.
<font color="#123456">Valid text inside unwanted tag.</font>
<ul>
Invalid text inside ul without li
<li>One</li>
<li>Two</li>
</ul>
I would like htmLawed to remove the invalid <font> tag while leaving its contents, as well as the invalid text inside the <ul> without a <li>.
keep_bad set to 0 will remove the <font> while leaving the text inside, but it will also leave the invalid text inside the <ul>. With keep_bad=3,4,5 or 6 it will remove the invalid text but only neutralize the <font> tags, not strip them.
Shouldn't keep_bad=4 or 6 do what I want?
I see a line in the source (436) that appears to only remove on 0, neutralize otherwise.