[owasp-antisamy] Extra line feeds and spaces in cleaned html?

Dan Rabe dan.rabe at oracle.com
Mon Apr 8 21:11:56 UTC 2013

I'm not sure if this is a "bug" per se, but it's curious behavior. An 
input fragment that doesn't have any newlines gets cleaned to two lines 
of HTML. And the SAX output has an extra space character at the 
beginning of the second line. Why would it do anything other than 
preserve the whitespace that was on the original string?

<b>hello</b> <i>world</i>

DOM output:

SAX output:

This is with AntiSamy 1.5.1 and NekoHTML 1.9.16.
/The views expressed in this email are my own and do not necessarily 
reflect the views of Oracle./*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.owasp.org/pipermail/owasp-antisamy/attachments/20130408/175cf22e/attachment.html>

More information about the Owasp-antisamy mailing list