You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I can not say this is bug but may be the policy we configure is wrong.
On the string if have html entites " " than after sanitize it show (empty
space) but not return " " while for other example "<", ">" shows
correctly after sanitize.
example,
final String test = " >";
final PolicyFactory policy = Sanitizers.FORMATTING.and(
Sanitizers.BLOCKS).and(Sanitizers.STYLES);
final String safeHTML = policy.sanitize(test);
System.out.println("Before:" +test);
System.out.println("After:" +safeHTML);
Result:
-------
Before: >
After: >
Actually we need after sanitize so can your provide guidance on this how
to achieve.
Thx in advance!
Kr,
Urvish
Original issue reported on code.google.com by urvishmp...@gmail.com on 23 May 2014 at 1:17