main
Last change
on this file since 65b6638 was d24f17c, checked in by Aleksandar Panovski <apano77@…>, 15 months ago |
Initial commit
|
-
Property mode
set to
100644
|
File size:
264 bytes
|
Rev | Line | |
---|
[d24f17c] | 1 | 'use strict'
|
---|
| 2 |
|
---|
| 3 | var characterEntities = require('character-entities')
|
---|
| 4 |
|
---|
| 5 | module.exports = decodeEntity
|
---|
| 6 |
|
---|
| 7 | var own = {}.hasOwnProperty
|
---|
| 8 |
|
---|
| 9 | function decodeEntity(characters) {
|
---|
| 10 | return own.call(characterEntities, characters)
|
---|
| 11 | ? characterEntities[characters]
|
---|
| 12 | : false
|
---|
| 13 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.