Restore CGI::escape.

This commit is contained in:
bootstraponline
2012-08-22 16:57:09 -06:00
parent 27f61a870a
commit a5f9df6170
+1 -1
View File
@@ -87,7 +87,7 @@ module Gollum
def process_headers(doc)
toc = nil
doc.css('h1,h2,h3,h4,h5,h6').each do |h|
id = encodeURIComponent(h.content.gsub(' ','-'))
id = CGI::escape(h.content.gsub(' ','-'))
level = h.name.gsub(/[hH]/,'').to_i
# Add anchors