function html_escape (str) {
if (!str) {
return str;
}
return str.replace(/&/g, '&')
.replace(/</g, '<')
.replace(/>/g, '>');
}
var d='<div id="test23">This is simple test</div>'
d.escapeHTML();// prototype js escape html
var d='<div id="test23">This is simple test</div>'
d.html();// YUI framework escape html