Explorar el Código

Fix issue in caniuse scraper

Thibaut Courouble hace 9 años
padre
commit
ddcd08094f
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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>'