浏览代码

Fix issue in caniuse scraper

Thibaut Courouble 9 年之前
父节点
当前提交
ddcd08094f
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      lib/docs/scrapers/support_tables.rb

+ 1 - 1
lib/docs/scrapers/support_tables.rb

@@ -57,7 +57,7 @@ module Docs
     end
 
     def md_to_html(str)
-      str = str.strip
+      str = CGI::escape_html(str.strip)
       str.gsub! %r{`(.*?)`}, '<code>\1</code>'
       str.gsub! %r{\n\s*\n}, '</p><p>'
       str.gsub! "\n", '<br>'