FIX: Avoid double-encoding featured topic title in user profile (#21507)

a373bf2 updated the behavior of replace-emoji so that the input is treated as unsafe-by-default. fancy_title is already escaped, so we need to mark it as html-safe to avoid it being double-escaped.

There is no need to html-safe the result of replace-emoji - it's already done as part of the helper.
This commit is contained in:
David Taylor 2023-05-12 10:11:59 +01:00 committed by GitHub
parent 07f87ff7a8
commit 177651fdbb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -180,8 +180,8 @@
this.model.featured_topic.slug
this.model.featured_topic.id
}}
>{{html-safe
(replace-emoji this.model.featured_topic.fancy_title)
>{{replace-emoji
(html-safe this.model.featured_topic.fancy_title)
}}</LinkTo>
</div>
{{/if}}