EasyHTML (easyhtml v0.2.0)

EasyHTML makes working with HTML easy.

It is a tiny wrapper around Floki that adds conveniences for HTML nodes:

  • An Inspect implementation to pretty-print them
  • An Access implementation to easily traverse them
  • A String.Chars implementation to convert them to text

examples

Examples

iex> doc = EasyHTML.parse!("<p>Hello, <em>world</em>!</p>")
#EasyHTML[<p>Hello, <em>world</em>!</p>]
iex> doc["em"]
#EasyHTML[<em>world</em>]
iex> to_string(doc)
"Hello, world!"

Link to this section Summary

Link to this section Functions

Link to this function

fetch(struct, selector)