From 717f17579eb08d403439b51b932692eb8a118b90 Mon Sep 17 00:00:00 2001 From: Kyle Johnson Date: Tue, 1 Aug 2023 12:42:18 +0100 Subject: [PATCH] fix: Highlight encoding (#2558) --- frontend/web/components/Highlight.js | 9 --------- 1 file changed, 9 deletions(-) diff --git a/frontend/web/components/Highlight.js b/frontend/web/components/Highlight.js index 59e7c7b93a61..cce4653befb8 100644 --- a/frontend/web/components/Highlight.js +++ b/frontend/web/components/Highlight.js @@ -51,15 +51,6 @@ class Highlight extends React.Component { highlightCode = () => { const nodes = this.el.querySelectorAll('pre code') - if (nodes[0] && nodes[0].innerHTML && nodes[0].innerHTML.match(/[<>]/)) { - if (!this.state.focus) { - nodes[0].innerHTML = nodes[0].innerText - } - setTimeout(() => { - this.highlightCode() - }, 100) - return - } if (typeof hljs !== 'undefined') { for (let i = 0; i < nodes.length; i++) { hljs.highlightBlock(nodes[i])