aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorlain <lain@soykaf.club>2020-05-30 12:17:18 +0200
committerlain <lain@soykaf.club>2020-05-30 12:17:18 +0200
commit2c9465cc51160546ae054d1a1912fbb8e9add8e8 (patch)
tree132c941b0e7371cfd290627b8986fe2349caeab2 /lib
parent32431ad1ee88d260b720fab05fce76eb75bfe107 (diff)
downloadpleroma-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.ex2
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