summaryrefslogtreecommitdiff
path: root/lib/coderay/encoders/html.rb
diff options
context:
space:
mode:
authorKornelius Kalnbach <murphy@rubychan.de>2013-11-20 15:54:41 +0100
committerKornelius Kalnbach <murphy@rubychan.de>2013-11-20 15:54:41 +0100
commitbc4854fa426a39c2bd51b2fd1cfa0322a5a9a412 (patch)
tree9b0bea1fd5487cbbbf916759d9807e49d1af9cd3 /lib/coderay/encoders/html.rb
parent94ced6235d43c21e035c39c9da9c94d987447eef (diff)
downloadcoderay-bc4854fa426a39c2bd51b2fd1cfa0322a5a9a412.tar.gz
don't escape " in HTML
Diffstat (limited to 'lib/coderay/encoders/html.rb')
-rw-r--r--lib/coderay/encoders/html.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/coderay/encoders/html.rb b/lib/coderay/encoders/html.rb
index c21b19d..7e83eb8 100644
--- a/lib/coderay/encoders/html.rb
+++ b/lib/coderay/encoders/html.rb
@@ -129,7 +129,6 @@ module Encoders
def self.make_html_escape_hash
{
'&' => '&amp;',
- '"' => '&quot;',
'>' => '&gt;',
'<' => '&lt;',
"\t" => ' ' * DEFAULT_OPTIONS[:tab_width],
@@ -140,7 +139,7 @@ module Encoders
end
HTML_ESCAPE = make_html_escape_hash
- HTML_ESCAPE_PATTERN = /[\t"&><\0-\x8\xB-\x1F]/
+ HTML_ESCAPE_PATTERN = /[\t&><\0-\x8\xB-\x1F]/
TOKEN_KIND_TO_INFO = Hash.new do |h, kind|
h[kind] = kind.to_s.gsub(/_/, ' ').gsub(/\b\w/) { $&.capitalize }