0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-03 23:00:14 -05:00
ghost/core/client/templates/components/gh-notification.hbs
Hannah Wolfe e75939c083 Mark html notifications as html-safe, else escape
no issue

- Use the double-tash escaping output for notification messages
- Mark known and trusted html notifications as html-safe

Credits: Abdel Adim Oisif
2015-02-28 16:22:38 +00:00

6 lines
No EOL
249 B
Handlebars

<section {{bind-attr class=":js-notification typeClass"}}>
<span class="notification-message">
{{message.message}}
</span>
<button class="close" {{action "closeNotification"}}><span class="hidden">Close</span></button>
</section>