source: trunk/grails-app/utils/SimpleXMLCodec.groovy @ 1871

Last change on this file since 1871 was 1430, checked in by work@…, 9 years ago
  • set keyword expansion
  • Property svn:keywords set to Rev Author Date
File size: 285 bytes
Line 
1import org.apache.commons.lang.StringEscapeUtils
2
3class SimpleXMLCodec {
4   
5    static encode = { theTarget ->
6        StringEscapeUtils.escapeXml(theTarget.toString())
7    }
8   
9    static decode = { theTarget ->
10        StringEscapeUtils.unescapeXml(theTarget.toString())
11    }
12}
Note: See TracBrowser for help on using the repository browser.