"<a style=\"text-decoration: none\" target=\"_blank\" " + "\\r\\n" + "href=\"http://abc.com\""+ "><span style=\"font-size: medium;\">XXXX</span></a>"
[<a style="text-decoration: none" target="_blank" href="http://abc.com"><span style="font-size: medium;">XXXX</span></a>] but found [<a style="text-decoration:none" target="_blank"><span style="font-size:medium">XXXX</span></a>]
Hi,Thanks for the response.I tried adding "\r\nhref@a" and "\\r\\nhref@a" to the whitelist, but still the sanitizer is stripping out the hrefInput string:
Can you try replacing \r\n with an empty string "" before sending into the sanitizer - as a quick fix while Mike reviews this more?
Aloha, Jim
To unsubscribe from this group and stop receiving emails from it, send an email to owasp-java-html-saniti...@googlegroups.com.