Skip to content

Commit 94a9a3e

Browse files
subtleGradientzpao
authored andcommitted
fixes ReactTextComponent rootID unescapedness
1 parent 48af9c7 commit 94a9a3e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/ReactTextComponent.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ mixInto(ReactTextComponent, {
6565
mountDepth
6666
);
6767
return (
68-
'<span ' + ReactMount.ATTR_NAME + '="' + rootID + '">' +
68+
'<span ' + ReactMount.ATTR_NAME + '="' + escapeTextForBrowser(rootID) + '">' +
6969
escapeTextForBrowser(this.props.text) +
7070
'</span>'
7171
);

0 commit comments

Comments
 (0)