fix some escaping with react views

This commit is contained in:
Peter Cottle 2015-06-09 11:19:48 -07:00
parent d805d75ffd
commit 970131fe8b

View file

@ -71,7 +71,11 @@ var CommandView = React.createClass({
<div id={this.props.id} className="reactCommandView">
<p className={commandClass}>
<span className="prompt">{'$'}</span>
{' ' + this.state.rawStr}
{' '}
<span dangerouslySetInnerHTML={{
__html: this.state.rawStr
}}
/>
<span className="icons transitionAllSlow">
<i className="icon-exclamation-sign"></i>
<i className="icon-check-empty"></i>