Reputation: 8859
I am using Google Caja HTML Sanitizer (https://code.google.com/p/google-caja/wiki/JsHtmlSanitizer), however it is sanitizing things I don't want it to.
Sometimes I want to input data in a format similar to:
Bob <Carpenter>
but this becomes:
Bob
Upvotes: 2
Views: 415
Reputation:
Caja sanitizes HTML. <Carpenter>
isn't valid HTML. Therefore, it gets sanitized.
If the data you're inputting isn't actually HTML, don't run it through Caja.
Upvotes: 3