Skip to content

Commit

Permalink
Merge pull request #12 from spreadshirt/escape-formatted-field-values
Browse files Browse the repository at this point in the history
Escape values in `field_format` templates
  • Loading branch information
heyLu authored Sep 22, 2023
2 parents 477827b + f7c7dec commit f5f0c4d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions render/render_html.py
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ def get_value(self, key, args, kwargs):
val = kwargs.get(key)
if isinstance(val, dict):
return DotMap(val)
return val
return escape(val)


class DotMap(dict):
Expand All @@ -301,4 +301,4 @@ def __getattr__(self, attr):
val = self.get(attr)
if isinstance(val, dict):
return DotMap(val)
return val
return escape(val)

0 comments on commit f5f0c4d

Please sign in to comment.