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
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.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.