Commit 30f60688 authored by Jiri Strojil's avatar Jiri Strojil

Safe rendering of html elements

parent 76d33101
Pipeline #33390 passed with stage
in 36 minutes and 57 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