about summary refs log tree commit diff
path: root/app
diff options
context:
space:
mode:
authorClaire <claire.github-309c@sitedethib.com>2022-03-28 23:40:45 +0200
committerClaire <claire.github-309c@sitedethib.com>2022-03-28 23:40:45 +0200
commit8d6f3f8a379c8d552d2101cf35ae8f6fe956da53 (patch)
tree19a0b6e761fc453fac2f5a8aba24595ad93f0382 /app
parent61cefbebf717326bd6ec3923e67e3702a24a0b24 (diff)
Fix code blocks processing
Diffstat (limited to 'app')
-rw-r--r--app/lib/advanced_text_formatter.rb2
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