You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1 line
7.2 KiB

{"version":3,"sources":["../../../src/bootstrap/tools/sanitizer.js"],"names":["unsafeHtml","whiteList","sanitizeFn","length","domParser","window","DOMParser","createdDocument","parseFromString","whitelistKeys","Object","keys","elements","slice","call","body","querySelectorAll","i","el","elName","nodeName","toLowerCase","indexOf","parentNode","removeChild","attributeList","attributes","whitelistedAttributes","concat","forEach","attr","allowedAttribute","removeAttribute","len","innerHTML","uriAttrs","a","area","b","br","col","code","div","em","hr","h1","h2","h3","h4","h5","h6","img","li","ol","p","pre","s","small","span","sub","sup","strong","u","ul","allowedAttributeList","attrName","nodeValue","match","regExp","filter","attrRegex","RegExp"],"mappings":"qJA2FO,SAAsBA,CAAtB,CAAkCC,CAAlC,CAA6CC,CAA7C,CAAyD,CAC9D,GAA0B,CAAtB,GAAAF,CAAU,CAACG,MAAf,CAA6B,CAC3B,MAAOH,CAAAA,CACR,CAED,GAAIE,CAAU,EAA0B,UAAtB,QAAOA,CAAAA,CAAzB,CAAoD,CAClD,MAAOA,CAAAA,CAAU,CAACF,CAAD,CAClB,CAOD,OALMI,CAAAA,CAAS,CAAG,GAAIC,CAAAA,MAAM,CAACC,SAK7B,CAJMC,CAAe,CAAGH,CAAS,CAACI,eAAV,CAA0BR,CAA1B,CAAsC,WAAtC,CAIxB,CAHMS,CAAa,CAAGC,MAAM,CAACC,IAAP,CAAYV,CAAZ,CAGtB,CAFMW,CAAQ,CAAG,GAAGC,KAAH,CAASC,IAAT,CAAcP,CAAe,CAACQ,IAAhB,CAAqBC,gBAArB,CAAsC,GAAtC,CAAd,CAEjB,YAASC,CAAT,KACQC,CAAAA,CAAE,CAAGN,CAAQ,CAACK,CAAD,CADrB,CAEQE,CAAM,CAAGD,CAAE,CAACE,QAAH,CAAYC,WAAZ,EAFjB,CAIE,GAAyD,CAAC,CAAtD,GAAAZ,CAAa,CAACa,OAAd,CAAsBJ,CAAE,CAACE,QAAH,C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AACK,MAArB,CAA4B,SAAAC,CAAS,QAAIA,CAAAA,CAAS,WAAYC,CAAAA,MAAzB,CAArC,CAGf,CAAStD,CAAC,CAAG,CAAb,CAAgBgB,CAAG,CAAGmC,CAAM,CAACjE,MAA7B,CAAqCc,CAAC,CAAGgB,CAAzC,CAA8ChB,CAAC,EAA/C,CAAmD,CACjD,GAAIgD,CAAQ,CAACE,KAAT,CAAeC,CAAM,CAACnD,CAAD,CAArB,CAAJ,CAA+B,CAC7B,QACD,CACF,CAED,QACD,C","sourcesContent":["/**\n * --------------------------------------------------------------------------\n * Bootstrap (v4.6.0): tools/sanitizer.js\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)\n * --------------------------------------------------------------------------\n */\n\nconst ur