dillon1000/react

Commit

Replace the implementation of escapeTextContentForBrowser with escape-html (#6862)

* Replacing the implementation of escapeTextContentForBrowser with escape-html for performance

* Addressing @spicyj's code review comment here: https://github.com/facebook/react/pull/6862#issuecomment-223102868 . Pulled the code of escape-html in to react and changed the encoding of single quote to &#x27.

* Addressing code review comment https://github.com/facebook/react/pull/6862#discussion_r65462074 to make code more inlinable for v8. Thanks, @spicyj.
Browse files
Changed paths1 file
First-parent comparison
M src/renderers/dom/shared/escapeTextContentForBrowser.js Modified
Patch

Files changed

Rendering syntax-highlighted changes…