# `HtmlSanitizeEx.Parser`
[🔗](https://github.com/rrrene/html_sanitize_ex/blob/main/lib/html_sanitize_ex/parser.ex#L1)

# `html_tree`

```elixir
@type html_tree() :: tuple() | list()
```

# `parse`

```elixir
@spec parse(binary()) :: html_tree()
```

Parses a HTML string.

## Examples

    iex> HtmlSanitizeEx.Parser.parse("<div class=js-action>hello world</div>")
    {"div", [{"class", "js-action"}], ["hello world"]}

    iex> HtmlSanitizeEx.Parser.parse("<div>first</div><div>second</div>")
    [{"div", [], ["first"]}, {"div", [], ["second"]}]

# `to_html`

---

*Consult [api-reference.md](api-reference.md) for complete listing*
