Skip to content

Commit

Permalink
Fix escaping of slashes with the Safe render
Browse files Browse the repository at this point in the history
Add a missing semi-colon escaping forward slashes with the `Safe`
render object.

Fixes #462.
  • Loading branch information
robin850 committed Feb 7, 2015
1 parent 7c41cf5 commit f75d4ac
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGELOG.md
@@ -1,5 +1,8 @@
# Changelog

* Fix escaping of forward slashes with the `Safe` render object (add a
missing semi-colon).

* Provide a `Redcarpet::CLI` class to create custom binary files.

Relying on Ruby's OptionParser, it's now straightforward to add new
Expand Down
2 changes: 1 addition & 1 deletion lib/redcarpet.rb
Expand Up @@ -54,7 +54,7 @@ def html_escape(string)
'>' => '>',
'"' => '"',
"'" => ''',
"/" => '&#x2F',
"/" => '/',
})
end
end
Expand Down

0 comments on commit f75d4ac

Please sign in to comment.