Skip to content

Commit

Permalink
Strip html tags
Browse files Browse the repository at this point in the history
  • Loading branch information
mtomilov committed Jan 29, 2025
1 parent d089ea0 commit c5a2a27
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion h/templates/emails/mention_notification.html.jinja2
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@
commented:
</p>

<blockquote>{{ annotation.text or "" }}</blockquote>
<blockquote>{{ annotation.text|striptags or "" }}</blockquote>

<p><a href="{{ annotation_url }}">View the thread and respond</a>.</p>
2 changes: 1 addition & 1 deletion h/templates/emails/mention_notification.txt.jinja2
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@

On {{ annotation.updated | human_timestamp }} {{ user_display_name }} replied:

> {{ annotation.text or "" }}
> {{ annotation.text|striptags or "" }}

View the thread and respond: {{ annotation_url }}

0 comments on commit c5a2a27

Please sign in to comment.