{"id":14128275,"url":"https://github.com/lemaetech/pp_html","last_synced_at":"2025-08-03T22:32:59.607Z","repository":{"id":56059767,"uuid":"316304460","full_name":"lemaetech/pp_html","owner":"lemaetech","description":"[Unreleased] Ocaml library to pretty print/format HTML5. See notes in README.","archived":false,"fork":false,"pushed_at":"2021-03-22T14:15:53.000Z","size":74,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-08-16T16:22:23.493Z","etag":null,"topics":["formatter","html5","pretty-printer"],"latest_commit_sha":null,"homepage":"https://lemaetech.co.uk/pp_html/","language":"OCaml","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lemaetech.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":"2020-11-26T18:04:22.000Z","updated_at":"2021-03-22T14:15:55.000Z","dependencies_parsed_at":"2022-08-15T12:20:51.108Z","dependency_job_id":null,"html_url":"https://github.com/lemaetech/pp_html","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lemaetech%2Fpp_html","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lemaetech%2Fpp_html/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lemaetech%2Fpp_html/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lemaetech%2Fpp_html/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lemaetech","download_url":"https://codeload.github.com/lemaetech/pp_html/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228571844,"owners_count":17938772,"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":["formatter","html5","pretty-printer"],"created_at":"2024-08-15T16:01:26.370Z","updated_at":"2024-12-07T06:31:03.533Z","avatar_url":"https://github.com/lemaetech.png","language":"OCaml","funding_links":[],"categories":["OCaml"],"sub_categories":[],"readme":"## Pretty-printer, formatter for HTML5 (Unreleased and not production ready)\n\nNote - The parser hasn't been validated against HTML5 RFC.\n\n## Example\n```ocaml \nlet () =\n  let html = \n    {|\u003c!DOCTYPE html\u003e\u003chtml\u003e\u003cbody\u003e\u003cbr\u003e \n    \u003chr class=\"class1\" id=\"id1\"/\u003e\n    \u003c!-- This is a comment --\u003e \n     \u003cdiv class=\"class1\"     id ='id1' style=\"align: center\" enabled\u003eHello World!\u003c/div\u003e\n     \u003cdiv\u003e\u003c/div\u003e\n     \u003cdiv disabled id   =   hello id = \n      hello2 id3 = \n       hello3\u003e\u003c/div\u003e\n    \u003c/body\u003e\u003c/html\u003e|} in \n  Pp_html.parse html\n  |\u003e Pp_html.pp ~indent:4 Format.std_formatter\n;;\n```\nThe above code produces the following formatted HTML5.\n```html\n\u003c!DOCTYPE html\u003e\n\n\u003chtml\u003e\n    \u003cbody\u003e\n        \u003cbr /\u003e\n        \u003chr class=\"class1\"\n            id=\"id1\"/\u003e\n\n        \u003c!--  This is a comment  --\u003e\n        \u003cdiv class=\"class1\"\n             id=\"id1\"\n             style=\"align: center\"\n             enabled\u003e\n            Hello World!\n        \u003c/div\u003e\n        \u003cdiv\u003e\n        \u003c/div\u003e\n        \u003cdiv disabled\n             id=\"hello\"\n             id=\"hello2\"\n             id3=\"hello3\"\u003e\n        \u003c/div\u003e\n    \u003c/body\u003e\n\u003c/html\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flemaetech%2Fpp_html","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flemaetech%2Fpp_html","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flemaetech%2Fpp_html/lists"}