Commit 41eb68c3fab6c532bae418f8621cfd67e09357bc
1 parent
d284b8bc
Exists in
ratings_minor_fixes
and in
4 other branches
should not escape body content in display content block
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
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? |