Skip to content

Commit 093e436

Browse files
12rambauakhmerov
andauthored
style: use \ to escape instead of &lt
Co-authored-by: Anton Akhmerov <[email protected]>
1 parent 44be238 commit 093e436

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

jupyter_sphinx/ast.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -394,7 +394,7 @@ def html(self):
394394
return ipywidgets.embed.snippet_template.format(
395395
load="",
396396
widget_views="",
397-
json_data=json.dumps(self["state"]).replace("</script>", "&lt/script>")
397+
json_data=json.dumps(self["state"]).replace("</script>", r"<\/script>")
398398
)
399399

400400
def cell_output_to_nodes(outputs, write_stderr, out_dir,

0 commit comments

Comments
 (0)