diff options
-rw-r--r-- | lib/oldweb.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/oldweb.rb b/lib/oldweb.rb index b1b7c46..910afaf 100644 --- a/lib/oldweb.rb +++ b/lib/oldweb.rb @@ -5,7 +5,6 @@ require 'rdoc' require 'erb' require 'pathname' require 'yaml' -require 'cgi' require 'uri' # oldweb is an \RDoc template and not intended as a programming API. @@ -288,7 +287,7 @@ class Oldweb # reach into RDoc internals to generate less HTML module LessHtml # :nodoc: def accept_verbatim(verbatim) - @res << "\n<pre>#{CGI.escapeHTML(verbatim.text.rstrip)}</pre>\n" + @res << "\n<pre>#{verbatim.text.rstrip.encode(xml: :text)}</pre>\n" end def accept_heading(heading) |