Commit c94dc3de787c301a7d0d0ca62b475d2ecbfa4630
1 parent
4d896a2b
Exists in
spb-stable
and in
3 other branches
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 | 24 | |
25 | 25 | <div class="highlighted-data #{h.user_color_scheme_class}"> |
26 | 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 | 28 | </div> |
29 | 29 | </div> |
30 | 30 | ... | ... |