Skip to content

Commit

Permalink
Escape style values (#21356)
Browse files Browse the repository at this point in the history
  • Loading branch information
sebmarkbage authored Apr 27, 2021
1 parent fc33f12 commit a2ae42d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/react-dom/src/server/ReactDOMServerFormatConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,9 @@ function pushStyle(
valueChunk = stringToChunk('' + styleValue);
}
} else {
valueChunk = stringToChunk(('' + styleValue).trim());
valueChunk = stringToChunk(
escapeTextForBrowser(('' + styleValue).trim()),
);
}
}
if (isFirst) {
Expand Down

0 comments on commit a2ae42d

Please sign in to comment.