MCPcopy Index your code
hub / github.com/hoothin/UserScripts / createHTML

Function createHTML

DownloadAllContent/DownloadAllContent.user.js:516–518  ·  view source on GitHub ↗
(html)

Source from the content-addressed store, hash-verified

514 }) : null;
515
516 function createHTML(html) {
517 return escapeHTMLPolicy ? escapeHTMLPolicy.createHTML(html) : html;
518 }
519
520 function str2Num(str) {
521 str = str.replace(/^番\s*外/, "99999+").replace(/[一①Ⅰ壹]/g, "1").replace(/[二②Ⅱ贰]/g, "2").replace(/[三③Ⅲ叁]/g, "3").replace(/[四④Ⅳ肆]/g, "4").replace(/[五⑤Ⅴ伍]/g, "5").replace(/[六⑥Ⅵ陆]/g, "6").replace(/[七⑦Ⅶ柒]/g, "7").replace(/[八⑧Ⅷ捌]/g, "8").replace(/[九⑨Ⅸ玖]/g, "9").replace(/[十⑩Ⅹ拾]/g, "*10+").replace(/[百佰]/g, "*100+").replace(/[千仟]/g, "*1000+").replace(/[万萬]/g, "*10000+").replace(/\s/g, "").match(/[\d\*\+]+/);

Callers 3

createLinkItemFunction · 0.70
filterListFunction · 0.70
initTxtDownDivFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected