How to allow html client.en.yml bold text to appear in handlebar files?

// 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 Like

Solution:

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

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