Merge pull request #1035 from basecamp/plain-text-fix
Don't render HTML stripping the tags for comment bodies, use to_plain_text instead
This commit is contained in:
@@ -85,7 +85,7 @@ module NotificationsHelper
|
||||
|
||||
def comment_notification_body(event)
|
||||
comment = event.eventable
|
||||
strip_tags(comment.body.to_s).truncate(200)
|
||||
comment.body.to_plain_text.truncate(200)
|
||||
end
|
||||
|
||||
def card_notification_title(card)
|
||||
|
||||
Reference in New Issue
Block a user