I'm working in a grails application that is using default encoding of html for all gsp pages:
grails {
views {
gsp {
encoding = 'UTF-8'
codecs {
expression = 'html'
scriptlet = 'html'
taglib = 'none'
staticparts = 'none'
}
}
}
}
This is great and removes XSS vulnerabilities from the vast majority of the application, but some plugins in the application include HTML in grails variables which are rendered on the GSPs in the plugins. Without modifying the plugin, I can't add the raw() method around the variables I don't want to encode.
I've looked through the grails docs and may just be looking in the wrong place, but I couldn't find an answer...
Is there a way to exclude a plugin from the gsp codecs? Or even a specific controller/view?