Skip to content

Commit 505457e

Browse files
committed
fix: escape error in functions
1 parent ac2df76 commit 505457e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

recipes/Functions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ def render_variables(self):
236236
def render_output(self):
237237
if error := gui.session_state.get("error"):
238238
with gui.tag("pre", className="bg-danger bg-opacity-25"):
239-
gui.html(error)
239+
gui.html(html.escape(error))
240240

241241
if return_value := gui.session_state.get("return_value"):
242242
gui.write("**Return value**")

0 commit comments

Comments
 (0)