Commit 564532c0 authored by Ariadne Conill's avatar Ariadne Conill

myhtmlex: we only support the c-node version, so remove the module() shim

parent bc5cd1df
Pipeline #19610 passed with stage
in 49 seconds
......@@ -41,10 +41,6 @@ defmodule Myhtmlex do
| comment_node3()
@type format_flag() :: :html_atoms | :nil_self_closing | :comment_tuple3
defp module() do
Application.get_env(:myhtmlex, :mode, Myhtmlex.Safe)
end
@doc """
Returns a tree representation from the given html string.
......@@ -100,6 +96,6 @@ defmodule Myhtmlex do
"""
@spec decode(String.t(), format: [format_flag()]) :: tree()
def decode(bin, format: flags) do
module().decode(bin, flags)
Myhtmlex.Safe.decode(bin, flags)
end
end
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