I built a GWT webapp that contains a email reader in one of its views. I want to be able to display the emails in both their original HTML and plain text formats. I am currently parsing and saving the HTML email text into the DB and is queried when it needs to be viewed. Rather then saving the original message and having to sanitize it every time it needs to be viewed, I would rather just store the sanitized version in the DB. So my question is can I run the HTML/CSS/Javascript sanitizer on this parsed email message from get the response and store that in the DB.. this would all be done serverside?
I am just trying to figure out what is the best way to sanitize and store some static HTML that will never change. And is caja a good fit for doing this? I would want to strip out all JS, any global css, and any other security related code. Thanks -- --- You received this message because you are subscribed to the Google Groups "Google Caja Discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
