fixes ReactTextComponent rootID unescapedness

This commit is contained in:
Thomas Aylott
2013-12-17 18:29:50 -08:00
committed by Paul O’Shannessy
parent 3e455a4397
commit 393a889aac
+1 -1
View File
@@ -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>'
);