19 lines
303 B
JavaScript
19 lines
303 B
JavaScript
/*
|
|
We're explicitly defining the list of entities that might see in escape HTML strings
|
|
*/
|
|
var htmlEntities = {
|
|
nbsp: ' ',
|
|
cent: '¢',
|
|
pound: '£',
|
|
yen: '¥',
|
|
euro: '€',
|
|
copy: '©',
|
|
reg: '®',
|
|
lt: '<',
|
|
gt: '>',
|
|
quot: '"',
|
|
amp: '&',
|
|
apos: "'"
|
|
};
|
|
|
|
module.exports = htmlEntities;
|