Tag - encodeAs (Since 1.0)
Description
Applies a Grails
Dynamic Encoding Methods to the enclosed block of markup including nested tags. Use this to bulk-encode content without explicitly calling the relevant encodeAsXXX codec methods on every value in the block.
Parameters
- codec - The name of the codec to apply, for example "HTML" will use the HTMLCodec
Examples
Example usages:
<g:encodeAs codec="HTML">
Next >>>
</g:encodeAs>
or
<g:encodeAs codec="HTML">
Profile for user ${user.name} is:
<g:render template="/fragments/showprofile"/>
</g:encodeAs>
No Comments Yet
Post a Comment
Site Login