XML CDATA support for JSTransformers.
npm install jstransformer-cdata-js
var cdata = require('jstransformer')(require('jstransformer-cdata-js'))
cdata.render('"hello world"').body
// <![CDATA[
// "hello world"
// //]]>
// ']]>' is properly escaped:
cdata.render('var str = "<[[goodbye world]]>"').body
// <![CDATA[
// var str = "<[[goodbye world]]]]><![CDATA[>"
// //]]>
MIT