You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is a problem of double quoting for search results in the title. A simple example is when the issue contains a quote (") in the title.
Problem is in app/views/search/index.html.erb calling
highlight_tokens(truncate(e.event_title, :length => 255), @tokens)
truncate marks the returned text as html_safe, but also highlight_tokens does this.
Fix ist to change the call to
highlight_tokens(truncate(e.event_title, escape: false, :length => 255), @tokens)
which prevents the double escaping.
The text was updated successfully, but these errors were encountered:
There is a problem of double quoting for search results in the title. A simple example is when the issue contains a quote (") in the title.
Problem is in app/views/search/index.html.erb calling
highlight_tokens(truncate(e.event_title, :length => 255), @tokens)
truncate marks the returned text as html_safe, but also highlight_tokens does this.
Fix ist to change the call to
highlight_tokens(truncate(e.event_title, escape: false, :length => 255), @tokens)
which prevents the double escaping.
The text was updated successfully, but these errors were encountered: