Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
load: function (obj, opts, cb) {
// respond after the obj is loaded
obj.html = ansi_up.linkify(ansi_up.ansi_to_html(ansi_up.escape_for_html(obj.line), {use_classes: true}))
cb(null, obj);
},
save: function (obj, opts, cb) {
render() {
const {pos, out} = this.props.line;
let html = ansi_up.escape_for_html(out || '');
html = ansi_up.ansi_to_html(html, opts);
html = ansi_up.linkify(html);
return (
<div></div>
);
}
}