MCSM: преобразование AnsiColor->HTML
This commit is contained in:
@@ -94,9 +94,11 @@ var WebConsole = React.createClass({
|
||||
lines: []
|
||||
}},
|
||||
render: function(){
|
||||
var ansi_up = new AnsiUp;
|
||||
|
||||
return(
|
||||
ce('div', {id: 'webconsole'},
|
||||
this.state.lines.map(function(line){ return ce('p', null, line); }))
|
||||
this.state.lines.map(function(line){ return ce('p', {dangerouslySetInnerHTML: {__html: ansi_up.ansi_to_html(line)}}); }))
|
||||
)
|
||||
},
|
||||
componentWillUnmount: function(){
|
||||
|
||||
Reference in New Issue
Block a user