From 05523c512a47949ac7bfc729bccf12e56a873bd3 Mon Sep 17 00:00:00 2001 From: Andrew Coleman Date: Wed, 1 Apr 2009 23:25:37 -0500 Subject: [PATCH] Let's just try anything, shall we? --- app/helpers/global_helpers.rb | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/app/helpers/global_helpers.rb b/app/helpers/global_helpers.rb index 8567f3a..dde4660 100644 --- a/app/helpers/global_helpers.rb +++ b/app/helpers/global_helpers.rb @@ -23,14 +23,7 @@ module Merb def show_page_description(page) page_cache = Cache.get(page.cache_name) if page_cache.nil? - desc = h(page.description.to_s).to_s.gsub(/\"\;/, '"').gsub(/\&\;/, '&') - # i need pre/code block together... because i code :) - desc.gsub!("<pre><code>", "
")
-        desc.gsub!("</code></pre>", "
") - # allow github gists and whatever else in javascript chunks - desc.gsub!("<script", "") - rc = RedCloth.new(desc) + rc = RedCloth.new(page.description) rc.no_span_caps = true rc.filter_styles = true rc.filter_html = true