FIX: html strong tags showing (#97)

We need to use the `html-safe` helper here so to that the html tags in
the translation template are rendered correctly.

See: https://meta.discourse.org/t/211376
This commit is contained in:
Blake Erickson 2021-12-09 13:30:45 -07:00 committed by GitHub
parent 23bfa1b567
commit afe6c10452
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -64,7 +64,7 @@
{{#if subscriberGoal}}
<progress class="campaign-banner-progress-bar" value={{subscribers}} max={{siteSettings.discourse_subscriptions_campaign_goal}}/>
<p class="campaign-banner-progress-description">
{{i18n "discourse_subscriptions.campaign.goal_comparison" current=subscribers goal=goalTarget}}
{{html-safe (i18n "discourse_subscriptions.campaign.goal_comparison" current=subscribers goal=goalTarget)}}
{{i18n "discourse_subscriptions.campaign.subscribers"}}
</p>
{{else}}