var characters = { '<': '<', '>': '>', '&': '&', '"': '"', '\'': ''' }; export function recoverFromEscapeCharacter(text : string): string{ text = text.replace(/</g, "<"); text = text.replace(/>/g, ">"); text = text.replace(/&/g, "&"); text = text.replace(/"/g, `"`); text = text.replace(/'/g, `'`); return text; }