Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/hecrj/html-parser

Parse HTML 5 in Elm
https://github.com/hecrj/html-parser

elm html parser

Last synced: about 1 month ago
JSON representation

Parse HTML 5 in Elm

Awesome Lists containing this project

README

        

# html-parser [![Build Status](https://travis-ci.org/hecrj/html-parser.svg?branch=master)](https://travis-ci.org/hecrj/html-parser)

Parse HTML 5 in Elm 0.19!

```elm
import Html.Parser

Html.Parser.run "

Hello, world!

"
-- => Ok [ Element "div" [] [ Element "p" [] [ Text "Hello, world!" ] ] ]
```

## Limitations
* `` 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][elm-slack]. I am always happy to talk!

## Credits
* [`jinjor/elm-html-parser`][jinjor] for most of the tests.

[elm-slack]: https://elmlang.herokuapp.com
[jinjor]: https://github.com/jinjor/elm-html-parser