Repository navigation
fix: prevent data uri images from showing in notifications - #1975
Conversation
[Medium impact] The changes reach announcement emails across several recipient groups. This appears safe to merge, with a non-blocking regression in labeled links in plain-text emails. Reviews (1) · Last reviewed commit: "fix: prevent data uri images from showin..." · Reviewed by Greptile |
| @@ -1,5 +1,5 @@ | |||
| {% autoescape off %} | |||
| {{ announcement.content }} | |||
| {{ announcement.content|striptags }} | |||
There was a problem hiding this comment.
Plain-text emails lose link destinations
The new striptags calls remove link URLs from plain-text emails. For example, <a href="https://example.org/signup">Register here</a> becomes only “Register here.” Recipients reading plain text must open Intranet to find the signup link. This affects all four changed text templates. Use an HTML-to-text conversion that keeps link destinations while dropping image tags.
Knowledge Base Used: Announcements, events, and notifications
Proposed changes