I have a scenario where i pass a string through AntiSamy tag. The string is .
String dirtyContent = "<script>test<script>testing";
CleanResults cr = as.scan(dirtyContent, policy);
System.out.println(cr.getCleanHTML());
So i am expecting AntiSamy to remove the tag and its content and print testing. But AntiSamy is removing the entire content and return empty string. Can anyone help? Thanks.