summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/redcarpet/render/gitlab_html.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/redcarpet/render/gitlab_html.rb b/lib/redcarpet/render/gitlab_html.rb
index 0fe2f48b322..2e18b0592b5 100644
--- a/lib/redcarpet/render/gitlab_html.rb
+++ b/lib/redcarpet/render/gitlab_html.rb
@@ -24,7 +24,7 @@ class Redcarpet::Render::GitlabHTML < Redcarpet::Render::HTML
<div class="highlighted-data #{h.user_color_scheme_class}">
<div class="highlight">
- <pre><code class="#{language}">#{h.html_escape(code)}</code></pre>
+ <pre><code class="#{language}">#{h.send(:html_escape, code)}</code></pre>
</div>
</div>