From ae6811ad4187614ee56bcf2b05ffc60a98c630ab Mon Sep 17 00:00:00 2001 From: Wesley Moore Date: Tue, 15 Jun 2010 08:19:12 +1000 Subject: [PATCH] Filter article JSON through RubyPants --- lib/articles.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/articles.rb b/lib/articles.rb index c644a3f..0fb111e 100644 --- a/lib/articles.rb +++ b/lib/articles.rb @@ -14,11 +14,11 @@ module WezM def article_to_json(article) { - :title => article[:title], + :title => RubyPants.new(article[:title]).to_html, :path => article.identifier, :date => Time.parse(article[:created_at]).rfc2822, - :text => article[:title], - :extra => article[:extra] || " " + :text => RubyPants.new(article[:title]).to_html, + :extra => RubyPants.new(article[:extra] || " ").to_html } end