diff options
Diffstat (limited to 'app/lib')
-rw-r--r-- | app/lib/advanced_text_formatter.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/lib/advanced_text_formatter.rb b/app/lib/advanced_text_formatter.rb index 5ce87d306..728400819 100644 --- a/app/lib/advanced_text_formatter.rb +++ b/app/lib/advanced_text_formatter.rb @@ -9,7 +9,7 @@ class AdvancedTextFormatter < TextFormatter def block_code(code, _language) <<~HTML.squish - <pre><code>#{h(code).gsub("\n", '<br/>')}</code></pre> + <pre><code>#{ERB::Util.h(code).gsub("\n", '<br/>')}</code></pre> HTML end |