Plugins You can find out about all the publicly available Grails plugins.

Grails Markup Sanitizer Plugin

  • Tags : codec, tinymce
  • Latest : 0.8.0
  • Last Updated: 18 January 2013
  • Grails version : 1.3.1 > *
2 votes

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...
Read more

Dependency :
compile ":sanitizer:0.8.0"

Documentation