4 * Copyright(c) 2010 TJ Holowaychuk <tj@vision-media.ca>
9 * Escape the given string of `html`.
11 * @param {String} html
16 exports.escape = function(html){
18 .replace(/&(?!\w+;)/g, '&')
19 .replace(/</g, '<')
20 .replace(/>/g, '>')
21 .replace(/"/g, '"');