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!" ] ] ]
This fork of https://github.com/hecrj/html-parser renders the media muted
attribute as a property, instead of as an attribute, because Chrome doesn't
pick it up otherwise, impacting autoplay.
<script>
tags are not fully supported.- SVG is not supported.
Feel free to contribute!
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!
jinjor/elm-html-parser
for most of the tests.