|
|
@@ -1,4 +1,6 @@
|
|
|
/* @flow */
|
|
|
+
|
|
|
+import { escape } from 'he'
|
|
|
import { hyphenate } from 'shared/util'
|
|
|
import { getStyle } from 'web/util/style'
|
|
|
|
|
|
@@ -14,6 +16,6 @@ function genStyleText (vnode: VNode): string {
|
|
|
export default function renderStyle (vnode: VNodeWithData): ?string {
|
|
|
const styleText = genStyleText(vnode)
|
|
|
if (styleText) {
|
|
|
- return ` style=${JSON.stringify(styleText)}`
|
|
|
+ return ` style=${JSON.stringify(escape(styleText))}`
|
|
|
}
|
|
|
}
|