Commit 51257280ce03eb3460eef845aef17d961b14001a
1 parent
2c797eb9
html_escape is private for rails 4.0.2 :(
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
lib/redcarpet/render/gitlab_html.rb
@@ -24,7 +24,7 @@ class Redcarpet::Render::GitlabHTML < Redcarpet::Render::HTML | @@ -24,7 +24,7 @@ class Redcarpet::Render::GitlabHTML < Redcarpet::Render::HTML | ||
24 | 24 | ||
25 | <div class="highlighted-data #{h.user_color_scheme_class}"> | 25 | <div class="highlighted-data #{h.user_color_scheme_class}"> |
26 | <div class="highlight"> | 26 | <div class="highlight"> |
27 | - <pre><code class="#{language}">#{h.html_escape(code)}</code></pre> | 27 | + <pre><code class="#{language}">#{h.send(:html_escape, code)}</code></pre> |
28 | </div> | 28 | </div> |
29 | </div> | 29 | </div> |
30 | 30 |