aboutsummaryrefslogtreecommitdiff
path: root/lib/pleroma/html.ex
diff options
context:
space:
mode:
authorlain <lain@soykaf.club>2020-02-11 13:22:35 +0000
committerlain <lain@soykaf.club>2020-02-11 13:22:35 +0000
commit3fee859b60d2b97e8210faf872a03d99cfc574cc (patch)
tree53e061abc3dfcc6bfa0f3024b443ac372eb7781c /lib/pleroma/html.ex
parent335cbe2e1bccd6e5bc64d7c10f2321844a7ee715 (diff)
parentea1631d7e67e22eb49d608e066ef4a3555bf25f7 (diff)
downloadpleroma-3fee859b60d2b97e8210faf872a03d99cfc574cc.tar.gz
Merge branch 'feat/floki-fasthtml' into 'develop'
Make Floki use fast_html See merge request pleroma/pleroma!2194
Diffstat (limited to 'lib/pleroma/html.ex')
-rw-r--r--lib/pleroma/html.ex1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/pleroma/html.ex b/lib/pleroma/html.ex
index 11513106e..05946aa96 100644
--- a/lib/pleroma/html.ex
+++ b/lib/pleroma/html.ex
@@ -108,6 +108,7 @@ defmodule Pleroma.HTML do
Cachex.fetch!(:scrubber_cache, key, fn _key ->
result =
content
+ |> Floki.parse_fragment!()
|> Floki.filter_out("a.mention,a.hashtag,a[rel~=\"tag\"]")
|> Floki.attribute("a", "href")
|> Enum.at(0)