Javascript String safe()
safe()
String.prototype.safe = function() { // safe string for html return this.replace(/\"/g, """).replace(/\'/g, "'").replace(/>/g, ">").replace(/</g, "<"); }