diff options
author | lain <lain@soykaf.club> | 2020-05-30 12:17:18 +0200 |
---|---|---|
committer | lain <lain@soykaf.club> | 2020-05-30 12:17:18 +0200 |
commit | 2c9465cc51160546ae054d1a1912fbb8e9add8e8 (patch) | |
tree | 132c941b0e7371cfd290627b8986fe2349caeab2 /lib | |
parent | 32431ad1ee88d260b720fab05fce76eb75bfe107 (diff) | |
download | pleroma-2c9465cc51160546ae054d1a1912fbb8e9add8e8.tar.gz |
SafeText: Let through basic html.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/pleroma/web/activity_pub/object_validators/types/safe_text.ex | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pleroma/web/activity_pub/object_validators/types/safe_text.ex b/lib/pleroma/web/activity_pub/object_validators/types/safe_text.ex index 822e8d2c1..95c948123 100644 --- a/lib/pleroma/web/activity_pub/object_validators/types/safe_text.ex +++ b/lib/pleroma/web/activity_pub/object_validators/types/safe_text.ex @@ -10,7 +10,7 @@ defmodule Pleroma.Web.ActivityPub.ObjectValidators.Types.SafeText do def type, do: :string def cast(str) when is_binary(str) do - {:ok, HTML.strip_tags(str)} + {:ok, HTML.filter_tags(str)} end def cast(_), do: :error |