Ensure updated comments notifications (text) render unescaped strings

Fixes #11143
pull/11183/head
rohitsrma 2023-10-27 18:40:34 +00:00 zatwierdzone przez LB Johnston
rodzic 614ae9c69f
commit 6ef8da04eb
4 zmienionych plików z 6 dodań i 2 usunięć

Wyświetl plik

@ -11,6 +11,7 @@ Changelog
* Fix: Add a fallback background for the editing preview iframe for sites without a background (Ian Price)
* Fix: Preserve whitespace in rendered comments (Elhussein Almasri)
* Fix: Remove search logging from project template so that new projects without the search promotions module will not error (Matt Westcott)
* Fix: Ensure text only email notifications for updated comments do not escape HTML characters (Rohit Sharma)
* Docs: Document, for contributors, the use of translate string literals passed as arguments to tags and filters using `_()` within templates (Chiemezuo Akujobi)
* Maintenance: Update BeautifulSoup upper bound to 4.12.x (scott-8)
* Maintenance: Migrate initialization of classes (such as `body.ready`) from multiple JavaScript implementations to one Stimulus controller `w-init` (Chiemezuo Akujobi)
@ -25,6 +26,7 @@ Changelog
* Fix: Add a fallback background for the editing preview iframe for sites without a background (Ian Price)
* Fix: Remove search logging from project template so that new projects without the search promotions module will not error (Matt Westcott)
* Fix: Ensure text only email notifications for updated comments do not escape HTML characters (Rohit Sharma)
* Docs: Fix code example for `{% picture ... as ... %}` template tag (Rezyapkin)

Wyświetl plik

@ -16,6 +16,7 @@ depth: 1
* Add a fallback background for the editing preview iframe for sites without a background (Ian Price)
* Remove search logging from project template so that new projects without the search promotions module will not error (Matt Westcott)
* Ensure text only email notifications for updated comments do not escape HTML characters (Rohit Sharma)
### Documentation

Wyświetl plik

@ -24,6 +24,7 @@ depth: 1
* Add a fallback background for the editing preview iframe for sites without a background (Ian Price)
* Preserve whitespace in rendered comments (Elhussein Almasri)
* Remove search logging from project template so that new projects without the search promotions module will not error (Matt Westcott)
* Ensure text only email notifications for updated comments do not escape HTML characters (Rohit Sharma)
### Documentation

Wyświetl plik

@ -27,8 +27,8 @@
{% trans "New replies:" %}{% for thread in replied_comments %}
{% trans 'New replies to:' %} "{{ thread.comment.text }}"{% for reply in thread.replies %}
- "{{ reply.text }}"{% endfor %}{% endfor %}{% endif %}
{% trans 'New replies to:' %} "{{ thread.comment.text|safe }}"{% for reply in thread.replies %}
- "{{ reply.text|safe }}"{% endfor %}{% endfor %}{% endif %}
{% trans "You can edit the page here:" %} {{ base_url }}{% url 'wagtailadmin_pages:edit' page.id %}
{% endblock %}