Skip to content

Conversation

@jvhellemond
Copy link

Plaintext templates are previewed as if they were HTML*. This works mostly, but not if the templates contains < or >. It is common practice to wrap links in plaintext mail with <>. Currently, the preview hides these links, as the browser interprets them as (unknown) HTML tags. This fixes that.

(* It would perhaps be better to preview these in an iframe as real plaintext, to better emulate a plaintext mail client.)

Text bodies are previewed as if they were HTML. This works mostly, but no if the text contains < or >. It is common practice to wrap links in plaintext mail with <>. Currently, the preview hides these links, as the browser interprets them as (unknown) HTML tags. This fixes that.
@jvhellemond jvhellemond changed the title Escape brackets in text body Escape brackets in plaintext templates Jan 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant