diff --git a/src/utils/helpers.ts b/src/utils/helpers.ts index f460fe14..257d0eb7 100644 --- a/src/utils/helpers.ts +++ b/src/utils/helpers.ts @@ -196,5 +196,7 @@ function parseURL(url: string) { } export function unescapeHTMLChars(str: string): string { - return str.replace(/&#(\d+);/g, (_m, code) => String.fromCharCode(parseInt(code, 10))); + return str + .replace(/&#(\d+);/g, (_m, code) => String.fromCharCode(parseInt(code, 10))) + .replace(/&/g, '&'); }