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

**URL:** https://meta.discourse.org/t/how-to-allow-html-client-en-yml-bold-text-to-appear-in-handlebar-files/259817
**Category:** Development
**Created:** [March 29, 2023, 8:17am UTC](https://meta.discourse.org/t/how-to-allow-html-client-en-yml-bold-text-to-appear-in-handlebar-files/259817 "2023-03-29T08:17:37Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![bstgmr02](https://avatars.discourse-cdn.com/v4/letter/b/858c86/32.png) [@bstgmr02](https://meta.discourse.org/u/bstgmr02)
#### Post date: [March 29, 2023, 8:17am UTC](https://meta.discourse.org/t/how-to-allow-html-client-en-yml-bold-text-to-appear-in-handlebar-files/259817/1 "2023-03-29T08:17:38Z")

</div>

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

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

```

I get the following result:  
 ![image](https://global.discourse-cdn.com/meta/original/4X/e/0/6/e0601c8a743f10604eb9e6966376c9f9030b436c.png)

---

<div class="post-metadata">

### Author: ![bstgmr02](https://avatars.discourse-cdn.com/v4/letter/b/858c86/32.png) [@bstgmr02](https://meta.discourse.org/u/bstgmr02)
#### Post date: [March 29, 2023, 10:39am UTC](https://meta.discourse.org/t/how-to-allow-html-client-en-yml-bold-text-to-appear-in-handlebar-files/259817/2 "2023-03-29T10:39:48Z")

</div>

Solution:

- After some more digging, came across `html-safe` which seems to have done the trick.

```hbs
{{ html-safe (i18n "description" user=this.username) }}

```

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [April 28, 2023, 10:39am UTC](https://meta.discourse.org/t/how-to-allow-html-client-en-yml-bold-text-to-appear-in-handlebar-files/259817/3 "2023-04-28T10:39:54Z")

</div>

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