Skip to content

Commit

Permalink
fix: escape print format code field(#22852) (#22864)
Browse files Browse the repository at this point in the history
(cherry picked from commit 68c2831)

Co-authored-by: surayp <96818210+surayp@users.noreply.github.com>
  • Loading branch information
mergify[bot] and surayp committed Oct 23, 2023
1 parent 7c4a22c commit 5ec32ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frappe/templates/print_formats/standard_macros.html
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@
<div style="padding: 10px 0px" {{ fieldmeta(df) }}>
{%- if df.fieldtype in ("Text", "Code", "Long Text") %}<label>{{ _(df.label) }}</label>{%- endif %}
{%- if df.fieldtype=="Code" %}
<pre class="value">{{ doc.get(df.fieldname) }}</pre>
<pre class="value">{{ doc.get(df.fieldname)|e }}</pre>
{% else -%}
{{ doc.get_formatted(df.fieldname, parent_doc or doc, translated=df.translatable) }}
{% endif -%}
Expand Down

0 comments on commit 5ec32ba

Please sign in to comment.