SafeText: Let through basic html.
This commit is contained in:
parent
32431ad1ee
commit
2c9465cc51
3 changed files with 22 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue