dillon1000/react

Commit

Escape bootstrapScriptContent for javascript embedding into HTML (#24385)

The previous escape was for Text into HTML and breaks script contents. The new escaping ensures that the script contents cannot prematurely close the host script tag by escaping script open and close string sequences using a unicode escape substitution.
Browse files
Changed paths2 files
First-parent comparison
M packages/react-dom/src/__tests__/ReactDOMFizzServer-test.js ModifiedM packages/react-dom/src/server/ReactDOMServerFormatConfig.js Modified
Patch

Files changed

Rendering syntax-highlighted changes…