mirror of https://github.com/vector-im/riot-web
Avoid innerHTML
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>pull/21833/head
parent
ce1be7a4cd
commit
363b753306
|
@ -134,7 +134,7 @@ export default class TextualBody extends React.Component {
|
|||
|
||||
_addCodeElement(pre) {
|
||||
const code = document.createElement("code");
|
||||
code.innerHTML = pre.innerHTML;
|
||||
code.append(...pre.childNodes);
|
||||
pre.innerHTML = "";
|
||||
pre.appendChild(code);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue