# easyhtml > EasyHTML makes working with HTML easy. ## Docs ### EasyHTML (module) EasyHTML makes working with HTML easy. It is a tiny wrapper around [Floki](https://hex.pm/packages/floki) that adds conveniences: * An `Inspect` implementation to pretty-print them * An `Access` implementation to search them * An `Enumerable` implementation to traverse them * A `String.Chars` implementation to convert them to text ### Examples - EasyHTML (module) iex> doc = EasyHTML.parse!(" Hello, world ! ") ~HTML[ Hello, world ! ] iex> doc["em"] ~HTML[ world ] iex> to_string(doc) "Hello, world!" iex> import EasyHTML, only: :sigils iex> doc = ~HTML[ foo bar ] iex> Enum.to_list(doc["li"]) [~HTML[ foo ], ~HTML[ bar ]] ### EasyHTML.parse!/1 (function) Parses a string into an EasyHTML struct. ### Examples - EasyHTML.parse!/1 (function) iex> EasyHTML.parse!(" Hello, World ! ") ~HTML[ Hello, World ! ] ### EasyHTML.sigil_HTML/2 (macro) Handles the `~HTML` sigil to create an EasyHTML struct. ### Examples - EasyHTML.sigil_HTML/2 (macro) ~HTML[ Hello, World ! ] ### EasyHTML.to_string/1 (function) Extracts text from the EasyHTML struct. ### Examples - EasyHTML.to_string/1 (function) iex> EasyHTML.to_string(~HTML[ Hello, World ! ]) "Hello, World!" ## Links - [Online documentation](https://hexdocs.pm/easyhtml)