mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
fixes ReactTextComponent rootID unescapedness
This commit is contained in:
committed by
Paul O’Shannessy
parent
3e455a4397
commit
393a889aac
@@ -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