UNPKG

@arcgis/core

Version:

ArcGIS Maps SDK for JavaScript: A complete 2D and 3D mapping and data visualization API

6 lines (5 loc) 1.17 kB
/* All material copyright ESRI, All Rights Reserved, unless otherwise specified. See https://js.arcgis.com/4.33/esri/copyright.txt for details. */ import{Sanitizer as e}from"@esri/arcgis-html-sanitizer";const a=["dd","dl","dt","h1","h2","h3","h4","h5","h6","sub","sup",...["animate","animatetransform","circle","clippath","defs","ellipse","g","image","line","lineargradient","marker","mask","path","pattern","polygon","polyline","radialgradient","rect","stop","svg","switch","symbol","text","textpath","tspan","use"]],i=a.reduce(((e,a)=>(e[a]=[],e)),{}),r=["align","alink","alt","bgcolor","border","cellpadding","cellspacing","class","color","cols","colspan","coords","d","dir","face","height","hspace","ismap","lang","marginheight","marginwidth","multiple","nohref","noresize","noshade","nowrap","ref","rel","rev","rows","rowspan","scrolling","shape","span","summary","tabindex","title","usemap","valign","value","vlink","vspace","width"],t=new e({whiteList:i,onTagAttr:(e,a,i)=>{const t=`${a}="${i}"`;if(r.includes(a))return t},stripIgnoreTag:!0,stripIgnoreTagBody:["script","style"]},!0);export{a as additionalAllowedTags,t as renderingSanitizer,r as safeAttrs};