Commit fa17838ce0f90b37e134b80762b47567251449c5
1 parent
25a90c0e
Exists in
ratings_minor_fixes
and in
4 other branches
should not escape notification message in admin notification plugin
Showing
2 changed files
with
3 additions
and
3 deletions
Show diff stats
plugins/admin_notifications/views/admin_notifications_plugin_public/notifications_with_popup.html.erb
... | ... | @@ -9,12 +9,12 @@ |
9 | 9 | </div> |
10 | 10 | </div> |
11 | 11 | <div class="notification-message notification-with-title-message"> |
12 | - <%= AdminNotificationsPlugin::NotificationHelper.substitute_variables(notification.message, current_user) %> | |
12 | + <%= AdminNotificationsPlugin::NotificationHelper.substitute_variables(notification.message, current_user).html_safe %> | |
13 | 13 | </div> |
14 | 14 | <% else %> |
15 | 15 | <div class="<%= notification.type.gsub("AdminNotificationsPlugin::", "").downcase %> notification notification-without-title" data-notification="<%=notification.id%>"> |
16 | 16 | <div class="notification-message"> |
17 | - <%= AdminNotificationsPlugin::NotificationHelper.substitute_variables(notification.message, current_user) %> | |
17 | + <%= AdminNotificationsPlugin::NotificationHelper.substitute_variables(notification.message, current_user).html_safe %> | |
18 | 18 | </div> |
19 | 19 | </div> |
20 | 20 | <% end %> | ... | ... |
plugins/admin_notifications/views/shared/_notifications_list.html.erb
... | ... | @@ -23,7 +23,7 @@ |
23 | 23 | <% @notifications.each do |notification| %> |
24 | 24 | <div class="notification-line"> |
25 | 25 | <div class="notification-message"> |
26 | - <%= truncate(notification.message, length: 50) %> | |
26 | + <%= truncate(notification.message.html_safe, length: 50) %> | |
27 | 27 | </div> |
28 | 28 | <div class="notification-action"> |
29 | 29 | <% if notification.active? %> | ... | ... |