Simply replace HTML Entities in your code into their own Characters.
// before
"Hello World"
// after
"Hello World"
nbsp: ' ',
cent: '¢',
pound: '£',
yen: '¥',
euro: '€',
copy: '©',
reg: '®',
lt: '<',
gt: '>',
quot: '"',
amp: '&',
apos: '\''