Commit 4d896a2b authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Enable html_escape for code blocks highlighted in markdown

Signed-off-by: default avatarDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
parent fd3ab695
......@@ -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}">#{code}</code></pre>
<pre><code class="#{language}">#{h.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