hecrj/html-parser/1.0.0

NOTE: the latest version is 2.4.0

Html.Parser

run : String -> Result (List DeadEnd) (List Node)

Run the parser!

type Node
= Text String
| Element String (List Attribute) (List Node)
| Comment String

An HTML node. It can either be:

  • Text
  • Element (with its tag name, attributes and children)
  • Comment