SOLVED

boolean escapeXml in constructor of DomSerializer

return new DomSerializer(htmlCleanerProperties, false).createDOM(root);

did the trick. Yet another RTFM.

Thanks.

 
Last edit: Jimisola Laursen 2013-12-26