Archive for the ‘JavaScript’ Category
function HTMLEncode(text) { return text.replace(/\”/g, ‘"’).replace(/</g, ‘<’).replace(/>/g, ‘>’).replace(/\’/g, ‘'’); }