Commit 3ba4ed31ad9dea65f78482d5010a54f856f55e00

Authored by Daniela Feitosa
1 parent 049db1a4

Escaped html when displaying leads of events

Leads of events returns the date of the event concatened with the lead
defined on article. As on article the lead was not returning a safe
html, the html was being escaped

(ActionItem2658)
Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
app/models/article.rb
... ... @@ -589,7 +589,7 @@ class Article < ActiveRecord::Base
589 589 end
590 590  
591 591 def lead
592   - abstract.blank? ? first_paragraph : abstract
  592 + abstract.blank? ? first_paragraph.html_safe : abstract.html_safe
593 593 end
594 594  
595 595 def short_lead
... ...