mix format
This commit is contained in:
parent
91f42781d3
commit
df0d84833d
1 changed files with 3 additions and 1 deletions
|
|
@ -19,7 +19,9 @@ defmodule Pleroma.Language.LanguageDetector do
|
||||||
defp prepare_text(text) do
|
defp prepare_text(text) do
|
||||||
text
|
text
|
||||||
|> Floki.parse_fragment!()
|
|> Floki.parse_fragment!()
|
||||||
|> Floki.filter_out(".h-card, .mention, .hashtag, .u-url, .quote-inline, .recipients-inline, code, pre")
|
|> Floki.filter_out(
|
||||||
|
".h-card, .mention, .hashtag, .u-url, .quote-inline, .recipients-inline, code, pre"
|
||||||
|
)
|
||||||
|> Floki.text()
|
|> Floki.text()
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue