decode-entity.js 264 B

12345678910111213
  1. 'use strict'
  2. var characterEntities = require('character-entities')
  3. module.exports = decodeEntity
  4. var own = {}.hasOwnProperty
  5. function decodeEntity(characters) {
  6. return own.call(characterEntities, characters)
  7. ? characterEntities[characters]
  8. : false
  9. }