Add target to allowed attributes on <a> links so that links open in new

tabs

Closes #786

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel 2021-07-21 10:34:07 +02:00
parent f4cfed1bdf
commit d7bcfd5be6
No known key found for this signature in database
GPG key ID: A061B9DDE0CA0773

View file

@ -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"])