Commit c94dc3de authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

html_escape is private for rails 4.0.2 :(

Signed-off-by: default avatarDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
parent 4d896a2b
......@@ -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>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment