diff --git a/src/util.ts b/src/util.ts index f614ab4..a21118e 100644 --- a/src/util.ts +++ b/src/util.ts @@ -208,5 +208,5 @@ const decodeTextarea = document.createElement('textarea'); export const decodeHTMLEntities = (text: string) => { decodeTextarea.innerHTML = text; - return decodeTextarea.textContent; + return decodeTextarea.textContent || ''; }