Skip to content

Commit

Permalink
escape land
Browse files Browse the repository at this point in the history
  • Loading branch information
sayanarijit committed Feb 9, 2024
1 parent f7097a2 commit e956d33
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tiptapy/templates/code_block.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{%- set language = node.attrs.language|default("") -%}
{%- set language = node.attrs.language|default("")|escape -%}
{%- if node.content -%}
{%- set text = escape(node.content[0].text) -%}
{%- set text = node.content[0].text|escape -%}
{%- if text -%}
<div><pre>
{%- if language -%}
Expand Down

0 comments on commit e956d33

Please sign in to comment.