diff options
author | Claire <claire.github-309c@sitedethib.com> | 2022-03-28 23:40:45 +0200 |
---|---|---|
committer | Claire <claire.github-309c@sitedethib.com> | 2022-03-28 23:40:45 +0200 |
commit | 8d6f3f8a379c8d552d2101cf35ae8f6fe956da53 (patch) | |
tree | 19a0b6e761fc453fac2f5a8aba24595ad93f0382 /app | |
parent | 61cefbebf717326bd6ec3923e67e3702a24a0b24 (diff) |
Fix code blocks processing
Diffstat (limited to 'app')
-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 |