From d7bcfd5be6e872f2725eed7c0f1bdb236109ea78 Mon Sep 17 00:00:00 2001 From: Thomas Citharel Date: Wed, 21 Jul 2021 10:34:07 +0200 Subject: [PATCH] Add target to allowed attributes on links so that links open in new tabs Closes #786 Signed-off-by: Thomas Citharel --- lib/service/formatter/default_scrubbler.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/service/formatter/default_scrubbler.ex b/lib/service/formatter/default_scrubbler.ex index cf353fc0..00120721 100644 --- a/lib/service/formatter/default_scrubbler.ex +++ b/lib/service/formatter/default_scrubbler.ex @@ -36,7 +36,7 @@ defmodule Mobilizon.Service.Formatter.DefaultScrubbler do "ugc" ]) - Meta.allow_tag_with_these_attributes(:a, ["name", "title"]) + Meta.allow_tag_with_these_attributes(:a, ["name", "title", "target"]) Meta.allow_tag_with_these_attributes(:abbr, ["title"])