Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
render() {
const { children, params, options } = this.props;
let fences
let className;
let content = utils.escapeHtml(children);
if (params) {
fences = params.split(/\s+/g);
className = `hljs ${options.langPrefix}${utils.escapeHtml(
utils.replaceEntities(utils.unescapeMd(fences.join(' ')))
)}`;
if (options.highlight) {
content = options.highlight.apply(
options.highlight, [content].concat(fences)) || content;
}
}
return (
<code>
);
}
}</code>
render() {
const { children, params, options } = this.props;
let fences
let className;
let content = utils.escapeHtml(children);
if (params) {
fences = params.split(/\s+/g);
className = `hljs ${options.langPrefix}${utils.escapeHtml(
utils.replaceEntities(utils.unescapeMd(fences.join(' ')))
)}`;
if (options.highlight) {
content = options.highlight.apply(
options.highlight, [content].concat(fences)) || content;
}
}
return (