summaryrefslogtreecommitdiff
path: root/node_modules/locutus/php/strings/html_entity_decode.js.map
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/locutus/php/strings/html_entity_decode.js.map')
-rw-r--r--node_modules/locutus/php/strings/html_entity_decode.js.map1
1 files changed, 1 insertions, 0 deletions
diff --git a/node_modules/locutus/php/strings/html_entity_decode.js.map b/node_modules/locutus/php/strings/html_entity_decode.js.map
new file mode 100644
index 0000000..4b00249
--- /dev/null
+++ b/node_modules/locutus/php/strings/html_entity_decode.js.map
@@ -0,0 +1 @@
+{"version":3,"sources":["../../../src/php/strings/html_entity_decode.js"],"names":["module","exports","html_entity_decode","string","quoteStyle","getHtmlTranslationTable","require","tmpStr","entity","symbol","toString","hashMap","split","join"],"mappings":";;AAAAA,OAAOC,OAAP,GAAiB,SAASC,kBAAT,CAA6BC,MAA7B,EAAqCC,UAArC,EAAiD;AAAE;AAClE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,MAAIC,0BAA0BC,QAAQ,uCAAR,CAA9B;AACA,MAAIC,SAAS,EAAb;AACA,MAAIC,SAAS,EAAb;AACA,MAAIC,SAAS,EAAb;AACAF,WAASJ,OAAOO,QAAP,EAAT;;AAEA,MAAIC,UAAUN,wBAAwB,eAAxB,EAAyCD,UAAzC,CAAd;AACA,MAAIO,YAAY,KAAhB,EAAuB;AACrB,WAAO,KAAP;AACD;;AAED;AACA;AACA,SAAQA,QAAQ,GAAR,CAAR;AACAA,UAAQ,GAAR,IAAe,OAAf;;AAEA,OAAKF,MAAL,IAAeE,OAAf,EAAwB;AACtBH,aAASG,QAAQF,MAAR,CAAT;AACAF,aAASA,OAAOK,KAAP,CAAaJ,MAAb,EAAqBK,IAArB,CAA0BJ,MAA1B,CAAT;AACD;AACDF,WAASA,OAAOK,KAAP,CAAa,QAAb,EAAuBC,IAAvB,CAA4B,GAA5B,CAAT;;AAEA,SAAON,MAAP;AACD,CAzCD","file":"html_entity_decode.js","sourcesContent":["module.exports = function html_entity_decode (string, quoteStyle) { // eslint-disable-line camelcase\n // discuss at: http://locutus.io/php/html_entity_decode/\n // original by: john (http://www.jd-tech.net)\n // input by: ger\n // input by: Ratheous\n // input by: Nick Kolosov (http://sammy.ru)\n // improved by: Kevin van Zonneveld (http://kvz.io)\n // improved by: marc andreu\n // revised by: Kevin van Zonneveld (http://kvz.io)\n // revised by: Kevin van Zonneveld (http://kvz.io)\n // bugfixed by: Onno Marsman (https://twitter.com/onnomarsman)\n // bugfixed by: Brett Zamir (http://brett-zamir.me)\n // bugfixed by: Fox\n // example 1: html_entity_decode('Kevin & van Zonneveld')\n // returns 1: 'Kevin & van Zonneveld'\n // example 2: html_entity_decode('<')\n // returns 2: '<'\n\n var getHtmlTranslationTable = require('../strings/get_html_translation_table')\n var tmpStr = ''\n var entity = ''\n var symbol = ''\n tmpStr = string.toString()\n\n var hashMap = getHtmlTranslationTable('HTML_ENTITIES', quoteStyle)\n if (hashMap === false) {\n return false\n }\n\n // @todo: & problem\n // http://locutus.io/php/get_html_translation_table:416#comment_97660\n delete (hashMap['&'])\n hashMap['&'] = '&'\n\n for (symbol in hashMap) {\n entity = hashMap[symbol]\n tmpStr = tmpStr.split(entity).join(symbol)\n }\n tmpStr = tmpStr.split(''').join(\"'\")\n\n return tmpStr\n}\n"]} \ No newline at end of file