Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 393a889

Browse files
subtleGradientzpao
authored andcommitted
fixes ReactTextComponent rootID unescapedness
1 parent 3e455a4 commit 393a889

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/ReactTextComponent.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ mixInto(ReactTextComponent, {
5858
mountComponent: function(rootID) {
5959
ReactComponent.Mixin.mountComponent.call(this, rootID);
6060
return (
61-
'<span ' + ReactMount.ATTR_NAME + '="' + rootID + '">' +
61+
'<span ' + ReactMount.ATTR_NAME + '="' + escapeTextForBrowser(rootID) + '">' +
6262
escapeTextForBrowser(this.props.text) +
6363
'</span>'
6464
);

0 commit comments

Comments
 (0)