Skip to content

Commit

Permalink
Some entities not decoded correctly in the browser (#380).
Browse files Browse the repository at this point in the history
  • Loading branch information
Kasper Peulen committed May 25, 2020
1 parent 20c7203 commit e6d1032
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/common/entities.browser.js
Expand Up @@ -2,6 +2,6 @@ var textarea;

export function decodeEntity(name) {
textarea = textarea || document.createElement('textarea');
textarea.innerHTML = '&' + name;
textarea.innerHTML = '&' + name + ';';
return textarea.value;
}

0 comments on commit e6d1032

Please sign in to comment.