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