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:
parent
07f87ff7a8
commit
177651fdbb
|
@ -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}}
|
||||
|
|
Loading…
Reference in New Issue