diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 281017e357..e37b98aa60 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -74,8 +74,9 @@ module ApplicationHelper end end - def unescape_emoji(title) + def format_topic_title(title) PrettyText.unescape_emoji(title) + strip_tags(title) end def with_format(format, &block) diff --git a/app/views/user_notifications/digest.html.erb b/app/views/user_notifications/digest.html.erb index 959562b2ea..2245642c4d 100644 --- a/app/views/user_notifications/digest.html.erb +++ b/app/views/user_notifications/digest.html.erb @@ -20,7 +20,7 @@ <%- @featured_topics.each_with_index do |t, i| %> @@ -43,7 +43,7 @@ <%- @new_topics.each do |t| %>