     iex> inject_attribute_to_last_opened "<tag><tag attr2></tag>", "attr=1"
     {:ok, "<tag attr=1><tag attr2></tag>"}
 
+    iex> inject_attribute_to_last_opened "<tag><br><tag attr2></tag>", "attr=1"
+    {:ok, "<tag attr=1><br><tag attr2></tag>"}
+
+    iex> inject_attribute_to_last_opened "<img src", "attr=1"
+    {:ok, "<img attr=1 src"}
+
+    iex> inject_attribute_to_last_opened "<hr>", "attr=1"
+    {:not_found, "<hr>"}
+
     iex> inject_attribute_to_last_opened "<tag 1><tag 2><tag 3></tag>", "attr"
     {:ok, "<tag 1><tag attr 2><tag 3></tag>"}
 

  def tokenize([head | tail]) do
    [tokenize(head) | tokenize(tail)]
  end

  @doc """
  Detokenizer. Leading spaces in the tag are removed! (< html> becomes <html>).

      iex> html = "<html> <body >some<b> anything</b></body ></html>"
      iex> html |> tokenize() |> tokenized_to_html() == html

      iex> html |> tokenize() |> tokenized_to_html() == html
      true

      iex> html = []
      iex> html |> tokenize() |> tokenized_to_html()
      ""

      iex> html = [""]
      iex> html |> tokenize() |> tokenized_to_html() == html
      true

