Back

Version 3

11/3/2022
export function unescapeHtml(unsafe) {
return unsafe
.replace(/&/g, "&")
.replace(/&lt;/g, "<")
.replace(/&gt;/g, ">")
.replace(/&quot;/g, '"')
.replace(/&#x27;/g, ";''")
.replace(/&#039;/g, "'");
}
Updated: October 23, 2023