mirror of
https://github.com/discourse/discourse.git
synced 2025-01-19 08:42:44 +08:00
FIX: any global notice text can contain HTML (#8655)
This commit is contained in:
parent
98853b217f
commit
ec5418fbb4
|
@ -130,7 +130,7 @@ export default Component.extend({
|
|||
) {
|
||||
notices.push(
|
||||
Notice.create({
|
||||
text: this.siteSettings.global_notice.htmlSafe(),
|
||||
text: this.siteSettings.global_notice,
|
||||
id: "alert-global-notice"
|
||||
})
|
||||
);
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
{{#if notice.options.html}}
|
||||
{{{notice.options.html}}}
|
||||
{{/if}}
|
||||
<span class="text">{{notice.text}}</span>
|
||||
<span class="text">{{{notice.text}}}</span>
|
||||
|
||||
{{#if notice.options.dismissable}}
|
||||
{{d-button
|
||||
|
|
Loading…
Reference in New Issue
Block a user