mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-06-28 00:40:07 +02:00
fix some escaping with react views
This commit is contained in:
parent
d805d75ffd
commit
970131fe8b
1 changed files with 5 additions and 1 deletions
|
@ -71,7 +71,11 @@ var CommandView = React.createClass({
|
||||||
<div id={this.props.id} className="reactCommandView">
|
<div id={this.props.id} className="reactCommandView">
|
||||||
<p className={commandClass}>
|
<p className={commandClass}>
|
||||||
<span className="prompt">{'$'}</span>
|
<span className="prompt">{'$'}</span>
|
||||||
{' ' + this.state.rawStr}
|
{' '}
|
||||||
|
<span dangerouslySetInnerHTML={{
|
||||||
|
__html: this.state.rawStr
|
||||||
|
}}
|
||||||
|
/>
|
||||||
<span className="icons transitionAllSlow">
|
<span className="icons transitionAllSlow">
|
||||||
<i className="icon-exclamation-sign"></i>
|
<i className="icon-exclamation-sign"></i>
|
||||||
<i className="icon-check-empty"></i>
|
<i className="icon-check-empty"></i>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue