mirror of
https://github.com/iconify/iconify.git
synced 2024-11-09 23:00:56 +00:00
Make styles safe
This commit is contained in:
parent
ff37e410c7
commit
3cc866214d
@ -11,7 +11,7 @@ const config = [
|
||||
format: 'esm',
|
||||
},
|
||||
],
|
||||
external: ['@glimmer/component', '@glimmer/tracking'],
|
||||
external: ['@ember/template', '@glimmer/component', '@glimmer/tracking'],
|
||||
plugins: [
|
||||
resolve({
|
||||
browser: true,
|
||||
|
@ -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,
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user