Javascript String cdata()
cdata()
String.prototype.cdata = function (){ return '<![CDATA[' + this.replace(new RegExp(']]>','g'),']]><![CDATA[') + ']]>'; }