lib/review/htmlutils.rb in review-3.2.0 vs lib/review/htmlutils.rb in review-4.0.0
- old
+ new
@@ -80,11 +80,11 @@
end
begin
require 'pygments'
begin
- Pygments.highlight(unescape(body),
+ Pygments.highlight(body,
options: options,
formatter: format,
lexer: lexer)
rescue MentosError
body
@@ -126,11 +126,10 @@
unless formatter
return body
end
- text = unescape(body)
- formatter.format(lexer.lex(text))
+ formatter.format(lexer.lex(body))
end
def normalize_id(id)
if id =~ /\A[a-z][a-z0-9_.-]*\Z/i
id