Public
Back
Version 3
11/3/2022
export function unescapeHtml(unsafe) {
return unsafe
.replace(/&/g, "&")
.replace(/</g, "<")
.replace(/>/g, ">")
.replace(/"/g, '"')
.replace(/'/g, ";''")
.replace(/'/g, "'");
}
Updated: October 23, 2023