projects
/
yaffs-website
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Upgraded drupal core with security updates
[yaffs-website]
/
node_modules
/
underscore.string
/
helper
/
escapeChars.js
1
/* We're explicitly defining the list of entities we want to escape.
2
nbsp is an HTML entity, but we don't want to escape all space characters in a string, hence its omission in this map.
3
4
*/
5
var escapeChars = {
6
'¢' : 'cent',
7
'£' : 'pound',
8
'¥' : 'yen',
9
'€': 'euro',
10
'©' :'copy',
11
'®' : 'reg',
12
'<' : 'lt',
13
'>' : 'gt',
14
'"' : 'quot',
15
'&' : 'amp',
16
"'" : '#39'
17
};
18
19
module.exports = escapeChars;