Skip to content

Commit

Permalink
Escape title
Browse files Browse the repository at this point in the history
  • Loading branch information
guerler committed Aug 6, 2024
1 parent 326b9f4 commit 8eb79e7
Showing 1 changed file with 9 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,15 @@
## Create a container, attach data and import script file
<%def name="get_body()">
## Collect incoming data
<% data_incoming = {
"root": h.url_for("/"),
"visualization_id": visualization_id,
"visualization_name": visualization_name,
"visualization_plugin": visualization_plugin,
"visualization_config": config }
<%
from markupsafe import escape
data_incoming = {
"root": h.url_for("/"),
"visualization_id": visualization_id,
"visualization_name": visualization_name,
"visualization_plugin": visualization_plugin,
"visualization_title": escape(title),
"visualization_config": config }
%>
## Create a container with default identifier `app`
Expand Down

0 comments on commit 8eb79e7

Please sign in to comment.