diff --git a/addon/modifiers/set-style.js b/addon/modifiers/set-style.js index 5e5d54b6..daed4ec3 100644 --- a/addon/modifiers/set-style.js +++ b/addon/modifiers/set-style.js @@ -1,7 +1,8 @@ +import { htmlSafe } from "@ember/template"; import { modifier } from "ember-modifier"; export default modifier(function setStyle(element, _, styles) { Object.entries(styles).forEach(([key, value]) => { - element.style[key] = value; + element.style[key] = htmlSafe(value); }); });