Skip to content

" " returns space after sanitize instead of returning same " " #30

@GoogleCodeExporter

Description

@GoogleCodeExporter
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 "&lt", "&gt" 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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions