Commit 4a68b632 authored by rinpatch's avatar rinpatch

formatting

parent eb8dfbc9
Pipeline #22751 passed with stage
in 2 minutes and 29 seconds
......@@ -23,7 +23,8 @@ defmodule FastSanitize.Fragment do
end)
end
defp build_self_closing_tag(tag, attrs), do: ["<", to_string(tag), build_attr_chunks(attrs), "/>"]
defp build_self_closing_tag(tag, attrs),
do: ["<", to_string(tag), build_attr_chunks(attrs), "/>"]
defp build_start_tag(tag, []),
do: ["<", to_string(tag), ">"]
......@@ -59,10 +60,8 @@ defmodule FastSanitize.Fragment do
subtree_to_iodata(subtree, scrubber)
end
defp subtree_to_html([], _), do: {:ok, ""}
defp subtree_to_html(tree, scrubber) do
iodata = subtree_to_iodata(tree, scrubber)
rendered = :erlang.iolist_to_binary(iodata)
......
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