Grails Markup Sanitizer Plugin
Plugin for Sanitizing Markup(HTML, XHTML, CSS) using OWASP AntiSamy. Filters malicious content from User generated content (such as that entered through Rich Text boxes).
Features -
- Ruleset in web-app/WEB-INF/antisamy-policy.xml
- Constraint "markup"
- can be added to domain/command classes to validate that a string is valid and safe markup
- important note: The constraint is for validation only, it does not sanitize the string
- Encoding-only Codec "myText.encodeAsSanitizedMarkup()"
- use the code...
Dependency :
compile ":sanitizer:0.8.0"