unescapeHtml.js
409 Bytes
define(['../lang/toString'], function (toString) {
/**
* Unescapes HTML special chars
*/
function unescapeHtml(str){
str = toString(str)
.replace(/&/g , '&')
.replace(/</g , '<')
.replace(/>/g , '>')
.replace(/�*39;/g , "'")
.replace(/"/g, '"');
return str;
}
return unescapeHtml;
});