Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion dp_wizard/shiny/panels/results_panel/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import html
import json
import re
from pathlib import Path
Expand Down Expand Up @@ -369,7 +370,11 @@ def notebook_py():
return "raise Exception('qa_mode!')"
return NotebookGenerator(
analysis_plan(),
input.custom_download_note(),
# The custom download note is inserted as a comment,
# and jupytext copies it verbatim to a markdown cell,
# and nbconvert does not sanitize MD before converting to HTML.
# Sanitizing HTML would be more complicated, and potentially lossy.
html.escape(input.custom_download_note(), quote=False),
).make_py()

@reactive.calc
Expand Down
Loading