ProjectMeshnet/nodeatlas

Automatically include `mailto` tag for admin contact in HTML contexts

Closed this issue · 2 comments

Currently, in order for an admin contact to display with a mailto: link, the HTML needs to be included in the field itself. This should be done automatically in HTML contexts, and not in plaintext ones.

Do we not do this already?

No, we don't escape the HTML, so it's possible to include actual HTML
mailto tags in the config, but then they render confusingly in
plaintext contexts. We should make that automatic, so that they look
like plaintext in plaintext contexts, and is converted to usable HTML
(with a mailto tag) automatically.