 defmodule Drab.Live.HTML do
   @moduledoc false
+
+  @type token :: {:tag, String.t()} | {:text, String.t()} | {:naked, String.t()}
 
   @doc """
   Simple html tokenizer. Works with nested lists.

  Returns amperes and patterns from flat html.
  Pattern is processed by Floki, so it doesn't have to be the same as original!
  """
  def amperes_from_buffer({:safe, buffer}) when is_list(buffer) do
    buffer
    |> to_flat_html()

      iex> in_opened_tag? "<input type='text' value='"
      true
  """
  @spec in_opened_tag?(Phoenix.HTML.safe() | list) :: boolean
  def in_opened_tag?({:safe, body}), do: in_opened_tag?(body)

  def in_opened_tag?(body) do
