diff --git a/app/views/notifications/_aggregated_reactions.html.erb b/app/views/notifications/_aggregated_reactions.html.erb index 856886874..88eab5c74 100644 --- a/app/views/notifications/_aggregated_reactions.html.erb +++ b/app/views/notifications/_aggregated_reactions.html.erb @@ -22,7 +22,7 @@ reacted to " class="notification-comment-reacted-link"> <%# your article/comment or the actual title of the article/comment %> - <%= reactable_data["title"].blank? ? "your #{reactable_data['class']['name'].downcase}" : sanitize(reactable_data["title"]) %> + <%= reactable_data["title"].blank? ? "your #{reactable_data['class']['name'].downcase}" : h(reactable_data["title"]) %> with diff --git a/app/views/notifications/_article.html.erb b/app/views/notifications/_article.html.erb index f530adabc..c1ee79e68 100644 --- a/app/views/notifications/_article.html.erb +++ b/app/views/notifications/_article.html.erb @@ -40,7 +40,7 @@ ">
- <%= sanitize(json_data["article"]["title"]) %> + <%= h(json_data["article"]["title"]) %>