@samitouri / QOS-React / commits / a2ae42db90

Escape style values (#21356)

Sebastian Markbåge committed Apr 26, 2021 at 21:46 UTC a2ae42db90d626eda8f84f127068bd1f95fb5a6d
1 file changed +3 -1
packages/react-dom/src/server/ReactDOMServerFormatConfig.js
+3 -1
@@ -321,7 +321,9 @@ function pushStyle(
321 valueChunk = stringToChunk('' + styleValue);
322 }
323 } else {
324 - valueChunk = stringToChunk(('' + styleValue).trim());
324 + valueChunk = stringToChunk(
325 + escapeTextForBrowser(('' + styleValue).trim()),
326 + );
327 }
328 }
329 if (isFirst) {