basant307/AI_Governance_Project
048
1let policy;2/**3* Attempt to create policy4*/5function createPolicy() {6 try {7 policy = window.trustedTypes.createPolicy("iconify", { createHTML: (s) => s });8 } catch (err) {9 policy = null;10 }11}12/**13* Clean up value for innerHTML assignment14*15* This code doesn't actually clean up anything.16* It is intended be used with Iconify icon data, which has already been validated17*/18function cleanUpInnerHTML(html) {19 if (policy === void 0) createPolicy();20 return policy ? policy.createHTML(html) : html;21}22export { cleanUpInnerHTML };23 