return 'keyword';
}
return 'syntax'
-
}
// loop through and print it...?
if (toks[i].identifier) {
r += '<span class="with-ident2">' +
- htmlescape(toks[i].data) + '</span>';
+ escapeHTML(toks[i].data) + '</span>';
continue;
}
- r += htmlescape(toks[i].data).replace(/\n/g, '<BR>');
+ r += escapeHTML(toks[i].data).replace(/\n/g, '<BR>');
}
if (cs.length) r +='</span>';
return '<code class="jsdoc-pretty">'+r+'</code>';
}
+function escapeHTML() {
+ return(
+ this.replace(/&/g,'&').
+ replace(/>/g,'>').
+ replace(/</g,'<').
+ replace(/"/g,'"')
+ );
+};
\ No newline at end of file