found this <http://docs.groovy-lang.org/latest/htm...
# general
p
found this http://docs.groovy-lang.org/latest/html/gapi/groovy/json/StringEscapeUtils.html the escapeJavaScript seems to work, the only issue is I also need to do a raw( ... ) because without that the \ is transformed to an XML entity &nn;