25f4a9a5b99e57cc5b90b22da0219cc5c55b4677
[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;