meowgorithm / html-parser

Parse HTML 5 in Elm

Home Page:https://package.elm-lang.org/packages/hecrj/html-parser/latest/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

html-parser Build Status

Parse HTML 5 in Elm 0.19!

import Html.Parser

Html.Parser.run "<div><p>Hello, world!</p></div>"
-- => Ok [ Element "div" [] [ Element "p" [] [ Text "Hello, world!" ] ] ]

Limitations

  • <script> tags are not fully supported.
  • SVG is not supported.

Feel free to contribute!

Contributing / Feedback

Feel free to fork and open issues or pull requests. You can also contact me (@hecrj) on the Elm Slack. I am always happy to talk!

Credits

About

Parse HTML 5 in Elm

https://package.elm-lang.org/packages/hecrj/html-parser/latest/

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:Elm 100.0%