Closed BloodDrag0n closed 3 months ago
hi @BloodDrag0n, looks like a bug, will have a look
@BloodDrag0n have added a test case but for me this looks ok from a first look. Any idea?
looks like the root cause is in antisamy - not in neko; see https://github.com/nahsra/antisamy/issues/484
I am using antisamy to sanitize HTML contents. During the parsing of the HTML Data, the
(self-closing) tag is converted into
(open tag). Is there any specific reason behind this behavior change? Is there any way to retain the
tags?
Eg Input Html Data:
<p>this is para data</p><br/><p>this is para data 2</p>
Eg Output Html Data:
<p>this is para data</p><br><p>this is para data 2</p>
HtmlUnit-Neko version using - 3.11.2 Antisamy version using - 1.7.5