URL in i18n text

I want to add a text with an URL on my 404 page – I have an i18n/en.toml file that has

[report-404]
other = "Feel free to <a href=\"https://github.com/retorquere/zotero-better-bibtex/issues\">report</a> any broken links."

but that just renders the tags as &lt; etc. when I use {{T "report-404"}}. How do get this to render as a link?

And can I pass the URL as a parameter so translations don’t have to be updated when the link changes (unlikely, but it’d be good to know). I see examples using variable from the current context, but not how to pass a constant. Should I be stashing this link in a data file instead?

Try {{ T "report-404" | safeHTML}}

1 Like