Let's just try anything, shall we?
parent
b8fc627aff
commit
05523c512a
|
@ -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>", "<pre><code>")
|
||||
desc.gsub!("</code></pre>", "</code></pre>")
|
||||
# allow github gists and whatever else in javascript chunks
|
||||
desc.gsub!("<script", "<script")
|
||||
desc.gsub!("></script>", "></script>")
|
||||
rc = RedCloth.new(desc)
|
||||
rc = RedCloth.new(page.description)
|
||||
rc.no_span_caps = true
|
||||
rc.filter_styles = true
|
||||
rc.filter_html = true
|
||||
|
|
Reference in New Issue