We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9f70b35 commit 5da7990Copy full SHA for 5da7990
scripts/static/js/sidebar.js
@@ -366,7 +366,7 @@ export function showSidebarContent(d, fromHover = false) {
366
367
function renderSidebarTabContent(tabName, d, children) {
368
if (tabName === 'Code') {
369
- return `<pre class="sidebar-code-pre">${d.code}</pre>`;
+ return `<pre class="sidebar-code-pre">${escapeHtml(d.code)}</pre>`;
370
}
371
if (tabName === 'Prompts') {
372
// Prompt select logic
0 commit comments