diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 4cc6834c5c..43acc6ddf5 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 304250e12f..9f4bfe4a90 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| %>