14 lines
264 B
JavaScript
14 lines
264 B
JavaScript
|
'use strict'
|
||
|
|
||
|
var characterEntities = require('character-entities')
|
||
|
|
||
|
module.exports = decodeEntity
|
||
|
|
||
|
var own = {}.hasOwnProperty
|
||
|
|
||
|
function decodeEntity(characters) {
|
||
|
return own.call(characterEntities, characters)
|
||
|
? characterEntities[characters]
|
||
|
: false
|
||
|
}
|