diff options
author | 2023-03-21 12:29:11 -0700 | |
---|---|---|
committer | 2023-03-21 12:29:42 -0700 | |
commit | 88fba7828bcdbb9f973c0112ff4bfb926d38dc80 (patch) | |
tree | 7edba2a236f06317af0ca3e430162a2c709c2b76 /lib | |
parent | Gemfile: update charlock_holmes for newer ICU (diff) | |
download | backend-88fba7828bcdbb9f973c0112ff4bfb926d38dc80.tar.gz backend-88fba7828bcdbb9f973c0112ff4bfb926d38dc80.tar.bz2 backend-88fba7828bcdbb9f973c0112ff4bfb926d38dc80.zip |
backend: Update to Sanitize-6, cleans up nokogiri/nokogumbo dep mess
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/rendering.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rendering.rb b/lib/rendering.rb index 5c164da..0a304ba 100644 --- a/lib/rendering.rb +++ b/lib/rendering.rb @@ -51,7 +51,7 @@ module Ag::Rendering end end.join.gsub("</div>\n<div class=\"ag-quote\">", "\n") elsif content_type == 'text/html' - '<div class="ag-html-content">' + Sanitize.clean(content, Sanitize::Config::BASIC) + '</div>' + '<div class="ag-html-content">' + Sanitize.fragment(content, Sanitize::Config::BASIC) + '</div>' else '<div class="alert alert-danger" role="alert"><strong>Unsupported Content-Type</strong></div>' end |