Comment autoriser le texte en gras de client.en.yml à apparaître dans les fichiers handlebar ?

// 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 « J'aime »

Solution:

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

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