1 parent 3009a79 commit 6a772b8Copy full SHA for 6a772b8
1 file changed
assets/nav.js
@@ -135,8 +135,7 @@
135
// Reference and example pages: replace .syntax-block and .impl-block
136
document.querySelectorAll('.syntax-block, .impl-block').forEach(el => {
137
if (!el.parentNode) return;
138
- const code = el.innerHTML
139
- .replace(/</g, '<').replace(/>/g, '>').replace(/&/g, '&').trim();
+ const code = el.textContent.trim();
140
if (!code) return;
141
const wrap = document.createElement('div');
142
el.parentNode.replaceChild(wrap, el);
0 commit comments