Commit 9bba0f31 authored by rinpatch's avatar rinpatch

Fragment: fast_html 2.0 compatibility

parent c0a15d42
Pipeline #28675 failed with stage
in 2 minutes and 25 seconds
......@@ -4,7 +4,7 @@ defmodule FastSanitize.Fragment do
import Plug.HTML, only: [html_escape_to_iodata: 1]
def to_tree(bin) do
with {:ok, [{:html, _, fragment}]} <-
with {:ok, fragment} <-
:fast_html.decode_fragment(bin,
format: [:nil_self_closing, :comment_tuple3, :html_atoms]
) do
......
Markdown is supported
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