MCPcopy Index your code
hub / github.com/witheve/Eve / getStrictDecoder

Function getStrictDecoder

src/commonmark.js:2886–2897  ·  view source on GitHub ↗
(map)

Source from the content-addressed store, hash-verified

2884 decodeHTMLStrict = getStrictDecoder(entityMap);
2885
2886function getStrictDecoder(map){
2887 var keys = Object.keys(map).join("|"),
2888 replace = getReplacer(map);
2889
2890 keys += "|#[xX][\\da-fA-F]+|#\\d+";
2891
2892 var re = new RegExp("&(?:" + keys + ");", "g");
2893
2894 return function(str){
2895 return String(str).replace(re, replace);
2896 };
2897}
2898
2899var decodeHTML = (function(){
2900 var legacy = Object.keys(legacyMap)

Callers 1

commonmark.jsFile · 0.85

Calls 1

getReplacerFunction · 0.85

Tested by

no test coverage detected