mirror of
https://github.com/iconify/iconify.git
synced 2024-11-13 00:06:29 +00:00
Make styles safe
This commit is contained in:
parent
ff37e410c7
commit
3cc866214d
@ -11,7 +11,7 @@ const config = [
|
|||||||
format: 'esm',
|
format: 'esm',
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
external: ['@glimmer/component', '@glimmer/tracking'],
|
external: ['@ember/template', '@glimmer/component', '@glimmer/tracking'],
|
||||||
plugins: [
|
plugins: [
|
||||||
resolve({
|
resolve({
|
||||||
browser: true,
|
browser: true,
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
import { htmlSafe } from '@ember/template';
|
||||||
import type { IconifyIcon } from '@iconify/types';
|
import type { IconifyIcon } from '@iconify/types';
|
||||||
import type { FullIconCustomisations } from '@iconify/utils/lib/customisations';
|
import type { FullIconCustomisations } from '@iconify/utils/lib/customisations';
|
||||||
import {
|
import {
|
||||||
@ -124,7 +125,7 @@ export const render = (
|
|||||||
|
|
||||||
return {
|
return {
|
||||||
...item.attributes,
|
...item.attributes,
|
||||||
style: style === '' ? void 0 : style,
|
style: style === '' ? void 0 : htmlSafe(style),
|
||||||
className,
|
className,
|
||||||
body,
|
body,
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user