mirror of
https://git.pleroma.social/pleroma/pleroma.git
synced 2024-12-23 08:36:29 +00:00
formatter: use Pleroma.HTML module instead of HtmlSanitizeEx directly
This commit is contained in:
parent
16307da311
commit
52b05137c5
1 changed files with 1 additions and 1 deletions
|
@ -193,7 +193,7 @@ defmodule Pleroma.Formatter do
|
||||||
|
|
||||||
# TODO: make it use something other than @link_regex
|
# TODO: make it use something other than @link_regex
|
||||||
def html_escape(text, "text/html") do
|
def html_escape(text, "text/html") do
|
||||||
HtmlSanitizeEx.basic_html(text)
|
HTML.filter_tags(text)
|
||||||
end
|
end
|
||||||
|
|
||||||
def html_escape(text, "text/plain") do
|
def html_escape(text, "text/plain") do
|
||||||
|
|
Loading…
Reference in a new issue