/*
All material copyright Esri, All Rights Reserved, unless otherwise specified.
See https://js.arcgis.com/5.0/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),s=new e({whiteList:{br:[]},stripIgnoreTag:!0,escapeHtml:e=>e},!1);export{a as additionalAllowedTags,t as renderingSanitizer,r as safeAttrs,s as stripHTMLSanitizer};
