mirror of
https://github.com/facebook/react.git
synced 2026-11-18 20:15:56 +00:00
fixes ReactTextComponent rootID unescapedness
This commit is contained in:
1 parent
3e455a4397
commit
393a889aac
1 file changed
+1
-1
@@ -58,7 +58,7 @@ mixInto(ReactTextComponent, {
|
||||
mountComponent: function(rootID) {
|
||||
ReactComponent.Mixin.mountComponent.call(this, rootID);
|
||||
return (
|
||||
'<span ' + ReactMount.ATTR_NAME + '="' + rootID + '">' +
|
||||
'<span ' + ReactMount.ATTR_NAME + '="' + escapeTextForBrowser(rootID) + '">' +
|
||||
escapeTextForBrowser(this.props.text) +
|
||||
'</span>'
|
||||
);
|
||||
|
||||
Reference in new issue
Block a user