Sha256: a18e2cac34e4c6d306b43029653f268335dbd60cf2fbfded163b43cb598f77cc

Contents?: true

Size: 419 Bytes

Versions: 19

Compression:

Stored size: 419 Bytes

Contents

/* We're explicitly defining the list of entities we want to escape.
nbsp is an HTML entity, but we don't want to escape all space characters in a string, hence its omission in this map.

*/
var escapeChars = {
  '¢' : 'cent',
  '£' : 'pound',
  '¥' : 'yen',
  '€': 'euro',
  '©' :'copy',
  '®' : 'reg',
  '<' : 'lt',
  '>' : 'gt',
  '"' : 'quot',
  '&' : 'amp',
  '\'' : '#39'
};

module.exports = escapeChars;

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
ela-4.1.6 node_modules/underscore.string/helper/escapeChars.js
ela-4.1.5 node_modules/underscore.string/helper/escapeChars.js
ela-4.1.4 node_modules/underscore.string/helper/escapeChars.js
ela-4.1.3 node_modules/underscore.string/helper/escapeChars.js
ela-4.1.2 node_modules/underscore.string/helper/escapeChars.js
ela-4.1.1 node_modules/underscore.string/helper/escapeChars.js
ela-4.1.0 node_modules/underscore.string/helper/escapeChars.js
ela-4.0.0 node_modules/underscore.string/helper/escapeChars.js
ela-3.4.3 node_modules/underscore.string/helper/escapeChars.js
ela-3.4.2 node_modules/underscore.string/helper/escapeChars.js
ela-3.4.0 node_modules/underscore.string/helper/escapeChars.js
ela-3.3.1 node_modules/underscore.string/helper/escapeChars.js
ela-3.3.0 node_modules/underscore.string/helper/escapeChars.js
ela-3.2.0 node_modules/underscore.string/helper/escapeChars.js
ela-3.1.1 node_modules/underscore.string/helper/escapeChars.js
ela-3.1.0 node_modules/underscore.string/helper/escapeChars.js
ela-3.0.0 node_modules/underscore.string/helper/escapeChars.js
ela-2.0.0 node_modules/underscore.string/helper/escapeChars.js
ela-1.1.0 node_modules/underscore.string/helper/escapeChars.js