From 3f856daf419a75a476e38d04761ec45c6e4279d7 Mon Sep 17 00:00:00 2001 From: setop Date: Sun, 10 Jan 2021 00:01:57 +0100 Subject: [PATCH] add "hr"to allowed tags in HTML because it doesn't hurt and it is useful in event description and all other HTML content --- lib/service/formatter/default_scrubbler.ex | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/service/formatter/default_scrubbler.ex b/lib/service/formatter/default_scrubbler.ex index e0f8ac70..cf353fc0 100644 --- a/lib/service/formatter/default_scrubbler.ex +++ b/lib/service/formatter/default_scrubbler.ex @@ -73,6 +73,7 @@ defmodule Mobilizon.Service.Formatter.DefaultScrubbler do Meta.allow_tag_with_these_attributes(:h3, []) Meta.allow_tag_with_these_attributes(:h4, []) Meta.allow_tag_with_these_attributes(:h5, []) + Meta.allow_tag_with_these_attributes(:hr, []) Meta.strip_everything_not_covered() end