If for sure not to have '\n', add format.setLineSeparator(""); in scan method of AntiSamyDOMScanner class. -------------- next part -------------- An HTML attachment was scrubbed... URL: https://lists.owasp.org/pipermail/owasp-antisamy/attachments/20080108/ddcdaa29/attachment.html