FIX: any global notice text can contain HTML (#8655)

This commit is contained in:
Joffrey JAFFEUX 2020-01-02 19:58:27 +01:00 committed by GitHub
parent 98853b217f
commit ec5418fbb4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -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"
})
);

View File

@ -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