History

Fix issue in caniuse scraper

Thibaut Courouble committed 10 years ago

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

Showing the changes to lib/docs (1 of 1 file). Show all

Unified · Split

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

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t