Skip to content
Snippets Groups Projects
Commit 8a7b5b17 authored by Robert Speicher's avatar Robert Speicher
Browse files

Remove redundant `html_escape` calls from `title` attributes

These get escaped automatically.
parent 3950f807
No related branches found
No related tags found
1 merge request!4090Add an Event's target's title to its reference link
Loading
Loading
@@ -3,7 +3,7 @@ module EventsHelper
author = event.author
 
if author
link_to author.name, user_path(author.username), title: h(author.name)
link_to author.name, user_path(author.username), title: author.name
else
event.author_name
end
Loading
Loading
@@ -151,7 +151,7 @@ module EventsHelper
namespace_project_commit_path(event.project.namespace, event.project,
event.note_commit_id,
anchor: dom_id(event.target)),
title: h(event.target_title),
title: event.target_title,
class: "commit_short_id"
) do
"#{event.note_target_type} #{event.note_short_commit_id}"
Loading
Loading
@@ -159,7 +159,7 @@ module EventsHelper
elsif event.note_project_snippet?
link_to(namespace_project_snippet_path(event.project.namespace,
event.project,
event.note_target), title: h(event.project.name)) do
event.note_target), title: event.project.name) do
"#{event.note_target_type} #{truncate event.note_target.to_reference}"
end
else
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment