Commit fdb0a449 authored by Jiri Strojil's avatar Jiri Strojil

Merge branch 'fixes/abbr-feedbacks' into 'develop'

Safe rendering of html elements

See merge request !907
parents 76d33101 30f60688
Pipeline #33410 passed with stage
in 58 minutes and 3 seconds
......@@ -109,7 +109,7 @@ module ApplicationHelper
def td_truncate_content_modal(body, title, shorten_size: 40)
return tag.td(body) if body.to_s.size < shorten_size
tag.td(class: 'truncate-td', data: truncate_modal_data(body, title), role: 'button') do
concat tag.span body.truncate(shorten_size)
concat tag.span body.truncate(shorten_size).html_safe
concat tag.span('Ganzer Text', class: 'whole-text')
end
end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment