Details
-
Bug
-
Resolution: Duplicate
-
Major
-
None
-
1.9.2, 2.0 M2
-
None
-
Unknown
-
Description
HtmlCleaner, the tools currently used for html cleaning in the html macro seems to not knowing the <legend> tag, and it drop it when it is told to drop unknown tags. I have checked the following with the command line of htmlcleaner:
Therefore:
<html><head /><body><fieldset> <legend>test</legend> <div>content</div> </fieldset> </body></html>
became using java -jar htmlcleaner-2.1.jar src=(above sample in a file) omitunknowntags=true
<?xml version="1.0" encoding="UTF-8"?> <html><head /><body><fieldset> test <div>content</div> </fieldset> </body></html>
which is absolutely not what is intended and very difficult to fix with CSS only.
I had to stop using the cleaner due to this issue, I do not know if there is a way to work around it apart from not removing unknown tags as a whole.
Attachments
Issue Links
- duplicates
-
XCOMMONS-31 Upgrade to HTML Cleaner 2.2
- Closed