Commit 325c7c92 authored by rinpatch's avatar rinpatch
Browse files

Make Floki use fast_html

parent 34cbe9f4
......@@ -737,6 +737,8 @@
config :pleroma, :instances_favicons, enabled: false
config :floki, :html_parser, Floki.HTMLParser.FastHtml
# Import environment specific config. This must remain at the bottom
# of this file so it overrides the configuration defined above.
import_config "#{Mix.env()}.exs"
......@@ -9,13 +9,11 @@ defmodule Pleroma.Web.Metadata.Providers.RelMeTest do
test "it renders all links with rel='me' from user bio" do
bio =
~s(<a href=""></a> <a rel="me" href=""></a>
<link href=""> <link rel="me" href=">")
~s(<a href=""></a> <a rel="me" href=""></a> <link href=""> <link rel="me" href="">)
user = insert(:user, %{bio: bio})
assert RelMe.build_tags(%{user: user}) == [
{:link, [rel: "me", href: ">"], []},
{:link, [rel: "me", href: ""], []},
{:link, [rel: "me", href: ""], []}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment