mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-22 16:06:23 +00:00
Merge branch 'issue-14417' of https://0xacab.org/sutty/sutty into production.panel.sutty.nl
This commit is contained in:
commit
2d8d8e648b
3 changed files with 6 additions and 1 deletions
1
Gemfile
1
Gemfile
|
@ -79,6 +79,7 @@ gem 'webpacker'
|
|||
gem 'yaml_db', git: 'https://0xacab.org/sutty/yaml_db.git'
|
||||
gem 'kaminari'
|
||||
gem 'device_detector'
|
||||
gem 'htmlbeautifier'
|
||||
gem 'rubanok'
|
||||
|
||||
gem 'after_commit_everywhere', '~> 1.0'
|
||||
|
|
|
@ -270,6 +270,7 @@ GEM
|
|||
hiredis (0.6.3-x86_64-linux-musl)
|
||||
hiredis-client (0.14.1-x86_64-linux-musl)
|
||||
redis-client (= 0.14.1)
|
||||
htmlbeautifier (1.4.2)
|
||||
http_parser.rb (0.8.0-x86_64-linux-musl)
|
||||
httparty (0.21.0)
|
||||
mini_mime (>= 1.0.0)
|
||||
|
@ -659,6 +660,7 @@ DEPENDENCIES
|
|||
hamlit-rails
|
||||
hiredis
|
||||
hiredis-client
|
||||
htmlbeautifier
|
||||
httparty
|
||||
icalendar
|
||||
image_processing
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
require 'htmlbeautifier'
|
||||
|
||||
# Se encarga del contenido del artículo y quizás otros campos que
|
||||
# requieran texto largo.
|
||||
class MetadataContent < MetadataTemplate
|
||||
|
@ -91,7 +93,7 @@ class MetadataContent < MetadataTemplate
|
|||
end
|
||||
end
|
||||
|
||||
html.to_s.html_safe
|
||||
HtmlBeautifier.beautify(html.to_s).html_safe
|
||||
end
|
||||
|
||||
# Limpia estilos en base a una lista de permitidos
|
||||
|
|
Loading…
Reference in a new issue