From 4841ea1bcfdf91d8106b331fb88a3d7c7045db16 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oliver=20G=C3=BCnther?= Date: Wed, 9 Sep 2015 15:36:23 +0200 Subject: [PATCH] Avoid HTML escaping in truncation This removes the default HTML escape in the search truncation, as that happens afterwards in `highlight_words` and otherwise leads to quoted text. --- app/views/search/index.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/search/index.html.erb b/app/views/search/index.html.erb index c1b2e2d7d0..d41b7f4b45 100644 --- a/app/views/search/index.html.erb +++ b/app/views/search/index.html.erb @@ -91,7 +91,7 @@ See doc/COPYRIGHT.rdoc for more details. <% if e.project != @project %> <%= e.project %> <% end %> - <%= link_to highlight_tokens(truncate(e.event_title, :length => 255), @tokens), with_notes_anchor(e, @tokens) %> + <%= link_to highlight_tokens(truncate(e.event_title, escape: false, length: 255), @tokens), with_notes_anchor(e, @tokens) %>
<%= highlight_first([last_journal(e).try(:notes), e.event_description], @tokens) %> <%= format_time(e.event_datetime) %>