{"id":21424536,"url":"https://github.com/jinjor/elm-html-parser","last_synced_at":"2025-09-04T05:34:00.856Z","repository":{"id":62418608,"uuid":"66960671","full_name":"jinjor/elm-html-parser","owner":"jinjor","description":"Parse HTML in Elm!","archived":false,"fork":false,"pushed_at":"2018-09-15T18:01:35.000Z","size":203,"stargazers_count":44,"open_issues_count":4,"forks_count":7,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-18T06:24:51.940Z","etag":null,"topics":["elm","elm-html-parser","parse","parser"],"latest_commit_sha":null,"homepage":"http://package.elm-lang.org/packages/jinjor/elm-html-parser/latest","language":"Elm","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jinjor.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-08-30T17:00:32.000Z","updated_at":"2021-12-07T07:51:05.000Z","dependencies_parsed_at":"2022-11-01T16:46:17.227Z","dependency_job_id":null,"html_url":"https://github.com/jinjor/elm-html-parser","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"purl":"pkg:github/jinjor/elm-html-parser","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jinjor%2Felm-html-parser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jinjor%2Felm-html-parser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jinjor%2Felm-html-parser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jinjor%2Felm-html-parser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jinjor","download_url":"https://codeload.github.com/jinjor/elm-html-parser/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jinjor%2Felm-html-parser/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273556057,"owners_count":25126480,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-04T02:00:08.968Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["elm","elm-html-parser","parse","parser"],"created_at":"2024-11-22T21:22:59.111Z","updated_at":"2025-09-04T05:34:00.794Z","avatar_url":"https://github.com/jinjor.png","language":"Elm","readme":"## Note\n\nFor anyone who is using Elm 0.19 and blocked by this library, consider using [hecrj/html-parser](https://package.elm-lang.org/packages/hecrj/html-parser/latest/) for now. It seems still WIP but passed the same test cases. I think that means the most difficult part of the HTML spec should be already covered (e.g. `\u003cli\u003e` does not need a closing tag). Also, it uses the official parser `elm/parser` which I was planning to use in the newer version. So I think contributing to `hecrj/html-parser` is the fastest path for everyone getting happy :)\n\n\n# elm-html-parser\n\n[![Build Status](https://travis-ci.org/jinjor/elm-html-parser.svg)](https://travis-ci.org/jinjor/elm-html-parser)\n\nParse HTML in Elm! ([DEMO](https://jinjor.github.io/elm-html-parser/))\n\n## Parse\n\n```elm\nimport HtmlParser as HtmlParser exposing (..)\n\nparse \"text\" == [ Text \"text\" ]\n\nparse \"\u003ch1\u003eHello\u003cbr\u003eWorld\u003c/h1\u003e\"\n  == [ Element \"h1\" [] [ Text \"Hello\", Element \"br\" [] [], Text \"World\" ] ]\n\nparse \"\"\"\u003ca href=\"http://example.com\"\u003eExample\u003c/a\u003e\"\"\"\n  == [ Element \"a\" [(\"href\", \"http://example.com\")] [ Text \"Example\" ] ]\n```\n\n## Query\n\n```elm\nimport HtmlParser exposing (..)\nimport HtmlParser.Util exposing (..)\n\ntable = \"\"\"\n  \u003ctable border=0 cellpadding=0 cellspacing=0 width=216 style='border-collapse:\n   collapse;width:162pt'\u003e\n  \u003c!--StartFragment--\u003e\n   \u003ccol width=72 span=3 style='width:54pt'\u003e\n   \u003ctr height=18 style='height:13.5pt'\u003e\n    \u003ctd height=18 align=right width=72 style='height:13.5pt;width:54pt'\u003e1\u003c/td\u003e\n    \u003ctd align=right width=72 style='width:54pt'\u003e2\u003c/td\u003e\n    \u003ctd align=right width=72 style='width:54pt'\u003e3\u003c/td\u003e\n   \u003c/tr\u003e\n   \u003ctr height=18 style='height:13.5pt'\u003e\n    \u003ctd height=18 class=xl69 align=right style='height:13.5pt'\u003e2\u003c/td\u003e\n    \u003ctd class=xl66 align=right\u003e3\u003c/td\u003e\n    \u003ctd align=right\u003e4\u003c/td\u003e\n   \u003c/tr\u003e\n  \u003c!--EndFragment--\u003e\n  \u003c/table\u003e\n\"\"\"\n\n( parse table\n  |\u003e getElementsByTagName \"tr\"\n  |\u003e mapElements\n    (\\_ _ innerTr -\u003e\n      innerTr\n        |\u003e mapElements (\\_ _ innerTd -\u003e textContent innerTd)\n        |\u003e String.join \"\\t\"\n        |\u003e String.trim\n    )\n  |\u003e String.join \"\\n\"\n) == \"1\\t2\\t3\\n2\\t3\\t4\"\n```\n\n## LICENSE\n\nBSD3\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjinjor%2Felm-html-parser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjinjor%2Felm-html-parser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjinjor%2Felm-html-parser/lists"}