Sha256: 8794b39eb350adb7277e1ee6403673ee5e85363405d3611d239c3cf670d7ad84

Contents?: true

Size: 479 Bytes

Versions: 264

Compression:

Stored size: 479 Bytes

Contents

var basePropertyOf = require('./_basePropertyOf');

/** Used to map characters to HTML entities. */
var htmlEscapes = {
  '&': '&',
  '<': '&lt;',
  '>': '&gt;',
  '"': '&quot;',
  "'": '&#39;'
};

/**
 * Used by `_.escape` to convert characters to HTML entities.
 *
 * @private
 * @param {string} chr The matched character to escape.
 * @returns {string} Returns the escaped character.
 */
var escapeHtmlChar = basePropertyOf(htmlEscapes);

module.exports = escapeHtmlChar;

Version data entries

264 entries across 262 versions & 29 rubygems

Version Path
appmap-0.71.0 ./node_modules/lodash/_escapeHtmlChar.js
disco_app-0.16.1 test/dummy/node_modules/lodash/_escapeHtmlChar.js
appmap-0.70.2 ./node_modules/lodash/_escapeHtmlChar.js
sumomo-0.8.14 data/sumomo/api_modules/node_modules/lodash/_escapeHtmlChar.js
appmap-0.70.1 ./node_modules/lodash/_escapeHtmlChar.js
appmap-0.70.0 ./node_modules/lodash/_escapeHtmlChar.js
appmap-0.69.0 ./node_modules/lodash/_escapeHtmlChar.js
sumomo-0.8.13 data/sumomo/api_modules/node_modules/lodash/_escapeHtmlChar.js
appmap-0.68.2 ./node_modules/lodash/_escapeHtmlChar.js
appmap-0.68.1 ./node_modules/lodash/_escapeHtmlChar.js
disco_app-0.15.2 test/dummy/node_modules/lodash/_escapeHtmlChar.js
appmap-0.68.0 ./node_modules/lodash/_escapeHtmlChar.js
appmap-0.67.1 ./node_modules/lodash/_escapeHtmlChar.js
trusty-cms-5.0.3 node_modules/lodash/_escapeHtmlChar.js
trusty-cms-5.0.2 node_modules/lodash/_escapeHtmlChar.js
appmap-0.67.0 ./node_modules/lodash/_escapeHtmlChar.js
disco_app-0.18.4 test/dummy/node_modules/lodash/_escapeHtmlChar.js
disco_app-0.18.1 test/dummy/node_modules/lodash/_escapeHtmlChar.js
disco_app-0.12.7.pre.puma.pre.3 test/dummy/node_modules/lodash/_escapeHtmlChar.js
disco_app-0.14.0 test/dummy/node_modules/lodash/_escapeHtmlChar.js