|
|
@ -91,6 +91,7 @@ defmodule Pleroma.HTML do
|
|
|
|
Cachex.fetch!(:scrubber_cache, key, fn _key ->
|
|
|
|
Cachex.fetch!(:scrubber_cache, key, fn _key ->
|
|
|
|
result =
|
|
|
|
result =
|
|
|
|
content
|
|
|
|
content
|
|
|
|
|
|
|
|
|> HtmlEntities.decode()
|
|
|
|
|> Floki.filter_out("a.mention,a.hashtag,a[rel~=\"tag\"]")
|
|
|
|
|> Floki.filter_out("a.mention,a.hashtag,a[rel~=\"tag\"]")
|
|
|
|
|> Floki.attribute("a", "href")
|
|
|
|
|> Floki.attribute("a", "href")
|
|
|
|
|> Enum.at(0)
|
|
|
|
|> Enum.at(0)
|
|
|
|