Wie kann man zulassen, dass fetter Text aus client.en.yml in Handlebar-Dateien angezeigt wird?

// Running Discourse Development Environment //

I have tried a few different approaches but I always end up with the same result, using stuff like <b>text</b>, [b]text[/b], **text** but nothing seems to work, instead it just returns it back as part of regular text. Am I missing some setting out, or should this be auto-detected?

js:
   description: You are attempting to view the user <b>%{user}</b>, is this correct?

I get the following result:
image

1 „Gefällt mir“

Solution:

  • After some more digging, came across html-safe which seems to have done the trick.
{{ html-safe (i18n "description" user=this.username) }}
3 „Gefällt mir“

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.