{"id":16347535,"url":"https://github.com/oscarotero/html-parser","last_synced_at":"2025-11-09T04:30:30.205Z","repository":{"id":56222902,"uuid":"182562088","full_name":"oscarotero/html-parser","owner":"oscarotero","description":"Simple utility to parse html strings to DOMDocument","archived":false,"fork":false,"pushed_at":"2024-12-04T10:19:58.000Z","size":172,"stargazers_count":15,"open_issues_count":0,"forks_count":2,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-01-28T06:47:55.635Z","etag":null,"topics":["html","parser"],"latest_commit_sha":null,"homepage":null,"language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/oscarotero.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-04-21T17:20:03.000Z","updated_at":"2024-12-04T10:20:03.000Z","dependencies_parsed_at":"2024-12-28T06:33:09.360Z","dependency_job_id":null,"html_url":"https://github.com/oscarotero/html-parser","commit_stats":{"total_commits":28,"total_committers":6,"mean_commits":4.666666666666667,"dds":0.2142857142857143,"last_synced_commit":"10f3219267a365d9433f2f7d1694209c9d436c8d"},"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oscarotero%2Fhtml-parser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oscarotero%2Fhtml-parser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oscarotero%2Fhtml-parser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oscarotero%2Fhtml-parser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/oscarotero","download_url":"https://codeload.github.com/oscarotero/html-parser/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239566467,"owners_count":19660301,"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","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":["html","parser"],"created_at":"2024-10-11T00:43:25.443Z","updated_at":"2025-11-09T04:30:30.171Z","avatar_url":"https://github.com/oscarotero.png","language":"HTML","readme":"# HTML parser\n\nSimple utility to parse html strings to DOMDocument.\n\n```sh\ncomposer require oscarotero/html-parser\n```\n\n## Usage\n\n```php\nuse HtmlParser\\Parser;\n\n$html = '\u003chtml\u003e\u003chead\u003e\u003c/head\u003e\u003cbody\u003eHello world\u003c/body\u003e\u003c/html\u003e';\n\n//Convert a string to a DOMDocument\n$document = Parser::parse($html);\n\n//Convert a string to a DOMDocumentFragment\n$fragment = Parser::parseFragment('\u003cp\u003eHello world\u003c/p\u003e');\n\n//Convert a DOMDocument or DOMDocumentFragment to a string\necho Parser::stringify($document);\necho Parser::stringify($fragment);\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foscarotero%2Fhtml-parser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foscarotero%2Fhtml-parser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foscarotero%2Fhtml-parser/lists"}