Last change
on this file since 1257 was
1257,
checked in by robert@…, 13 years ago
|
Added an export and import functionality for templates, as described in ticket #76
|
File size:
285 bytes
|
Line | |
---|
1 | import org.apache.commons.lang.StringEscapeUtils |
---|
2 | |
---|
3 | class 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.