SafeText: Let through basic html.

This commit is contained in:
lain 2020-05-30 12:17:18 +02:00
commit 2c9465cc51
3 changed files with 22 additions and 1 deletions

View file

@ -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