Commit 41eb68c3fab6c532bae418f8621cfd67e09357bc

Authored by Leandro Santos
1 parent d284b8bc

should not escape body content in display content block

plugins/display_content/lib/display_content_block.rb
@@ -161,7 +161,7 @@ class DisplayContentBlock < Block @@ -161,7 +161,7 @@ class DisplayContentBlock < Block
161 read_more_section = content_tag('div', link_to(_('Read more'), item.url), :class => 'read_more') 161 read_more_section = content_tag('div', link_to(_('Read more'), item.url), :class => 'read_more')
162 end 162 end
163 when 'body' 163 when 'body'
164 - content_sections += (block.display_section?(section) ? (content_tag('div', item.body ,:class => 'body')) : '' ) 164 + content_sections += (block.display_section?(section) ? (content_tag('div', item.body.html_safe ,:class => 'body')) : '' )
165 when 'image' 165 when 'image'
166 image_section = image_tag item.image.public_filename if item.image 166 image_section = image_tag item.image.public_filename if item.image
167 if !image_section.blank? 167 if !image_section.blank?