Commit e09a3a9338e73480f36a87ab84cd0464a2717c25
1 parent
41eb68c3
Exists in
ratings_minor_fixes
and in
4 other branches
should not escape abstract 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
@@ -156,7 +156,7 @@ class DisplayContentBlock < Block | @@ -156,7 +156,7 @@ class DisplayContentBlock < Block | ||
156 | when 'title' | 156 | when 'title' |
157 | content_sections += (block.display_section?(section) ? (content_tag('div', link_to(h(item.title), item.url), :class => 'title') ) : '') | 157 | content_sections += (block.display_section?(section) ? (content_tag('div', link_to(h(item.title), item.url), :class => 'title') ) : '') |
158 | when 'abstract' | 158 | when 'abstract' |
159 | - content_sections += (block.display_section?(section) ? (content_tag('div', item.abstract , :class => 'lead')) : '' ) | 159 | + content_sections += (block.display_section?(section) ? (content_tag('div', item.abstract.html_safe , :class => 'lead')) : '' ) |
160 | if block.display_section?(section) | 160 | if block.display_section?(section) |
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 |