export class StringHelper {
static entityMap:any = {
"<": "<",
">": ">",
'"': '"',
"'": ''',
"/": '/'
};
static escapeHtml(html:string): string {
var that = this;
return String(html).replace(/[<>"'\/]/g, function (s) {
return that.entityMap[s];
});
}
}