diff --git a/app/helpers/user_notifications_helper.rb b/app/helpers/user_notifications_helper.rb index 7af9c10c092..1b224db4974 100644 --- a/app/helpers/user_notifications_helper.rb +++ b/app/helpers/user_notifications_helper.rb @@ -50,7 +50,7 @@ module UserNotificationsHelper def email_excerpt(html, posts_count) # If there's only one post, include the whole thing. if posts_count == 1 - raw Sanitize.clean(html, sanitize_options) + raw Sanitize.clean(html, UserNotificationsHelper.sanitize_options) else # Otherwise, try just the first paragraph. para = first_paragraph_from(html)