Overriding grails.views.default.codec='html' config back to 'none'

后端 未结 6 1821
逝去的感伤
逝去的感伤 2020-12-01 00:49

In Grails (<2.3), if I leave grails.views.default.code=\'none\' in the grails Config.groovy, it\'s up to me to HTML encode my expressions explicitly in the G

6条回答
  •  心在旅途
    2020-12-01 01:20

    I may have a solution. I'm not sure how accepted it is, though.

    I can set the default codec for expressions to HTML, but then use <%=myValue%> notation in GSP instead of ${} expressions to get the unescaped values onto the page.

提交回复
热议问题