Node.js examples for String:HTML String
Sanitize HTML string
String.prototype.sanitize = function() { return this//w w w . ja va 2 s . c o m .replace(/&/g, '&') .replace(/</g, '<') .replace(/>/g, '>') .replace(/"/g, '"') .replace(/'/g, ''') }