您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

21 行
479 B

4 年前
  1. var basePropertyOf = require('./_basePropertyOf');
  2. /** Used to map characters to HTML entities. */
  3. var htmlEscapes = {
  4. '&': '&',
  5. '<': '&lt;',
  6. '>': '&gt;',
  7. '"': '&quot;',
  8. "'": '&#39;'
  9. };
  10. /**
  11. * Used by `_.escape` to convert characters to HTML entities.
  12. *
  13. * @private
  14. * @param {string} chr The matched character to escape.
  15. * @returns {string} Returns the escaped character.
  16. */
  17. var escapeHtmlChar = basePropertyOf(htmlEscapes);
  18. module.exports = escapeHtmlChar;