Use `content_tag` for generating markup in `unmask` method

This commit is contained in:
Karina Kwiatek 2022-06-26 18:17:29 +02:00 committed by Andreas Nedbal
parent e5b8ea017c
commit 8fb4256432
1 changed files with 1 additions and 1 deletions

View File

@ -34,7 +34,7 @@ module UserHelper
def unmask(user, context_user, anonymous_identifier)
return profile_link(user) if user.present?
"<abbr title='#{anonymous_identifier}'>#{anonymous_name(context_user)}</abbr>"
content_tag(:abbr, anonymous_name(context_user), title: anonymous_identifier)
end
def anonymous_name(context_user)