2
0
mirror of https://github.com/iconify/iconify.git synced 2024-12-13 14:13:06 +00:00

Make styles safe

This commit is contained in:
Bj Tecu 2022-03-11 11:39:57 -05:00
parent ff37e410c7
commit 3cc866214d
2 changed files with 3 additions and 2 deletions

View File

@ -11,7 +11,7 @@ const config = [
format: 'esm',
},
],
external: ['@glimmer/component', '@glimmer/tracking'],
external: ['@ember/template', '@glimmer/component', '@glimmer/tracking'],
plugins: [
resolve({
browser: true,

View File

@ -1,3 +1,4 @@
import { htmlSafe } from '@ember/template';
import type { IconifyIcon } from '@iconify/types';
import type { FullIconCustomisations } from '@iconify/utils/lib/customisations';
import {
@ -124,7 +125,7 @@ export const render = (
return {
...item.attributes,
style: style === '' ? void 0 : style,
style: style === '' ? void 0 : htmlSafe(style),
className,
body,
};