History

Fix issue in caniuse scraper

Thibaut Courouble committed 10 years ago

Commit ddcd0801 parent c0179b21 file · +1 −1Browse files

Unified · Split

lib/docs/scrapers/support_tables.rb+1−1
@@ -57,7 +57,7 @@ module Docs · 56 unmodified lines
57 end57 end
58 58
59 def md_to_html(str)59 def md_to_html(str)
60 str = str.strip60 str = CGI::escape_html(str.strip)
61 str.gsub! %r{`(.*?)`}, '<code>\1</code>'61 str.gsub! %r{`(.*?)`}, '<code>\1</code>'
62 str.gsub! %r{\n\s*\n}, '</p><p>'62 str.gsub! %r{\n\s*\n}, '</p><p>'
63 str.gsub! "\n", '<br>'63 str.gsub! "\n", '<br>'