title: How to sanitize html/javascript from request.JSON in grails 3.1.10 restful service
body: <p>We have a grails 3.1.10 restful service that takes in json data on the http post. This data can contain html/javascript which is not desired. </p>
  
  <p>Using encodeAsHTML and the xss-sanitizer plugin XssSanitizerUtil.stripXSS methods I can see how to sanitize an individual string, but how can I push this to a higher scope through filters or something so that when request.JSON is used in the controller it has already been sanitized? </p>
  
  <p>Or is there already another easier way to accomplish this? </p>