{"id":19309780,"url":"https://github.com/mitica/elementar","last_synced_at":"2026-05-14T22:03:27.694Z","repository":{"id":57222250,"uuid":"115646155","full_name":"mitica/elementar","owner":"mitica","description":"Elementar is a content-oriented HTML simplifier.","archived":false,"fork":false,"pushed_at":"2017-12-31T10:13:22.000Z","size":58,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-03T12:55:50.581Z","etag":null,"topics":["elementar","html","html-simplifier","simplifier"],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mitica.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-12-28T17:39:45.000Z","updated_at":"2017-12-28T17:43:46.000Z","dependencies_parsed_at":"2022-08-29T02:12:48.150Z","dependency_job_id":null,"html_url":"https://github.com/mitica/elementar","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mitica/elementar","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mitica%2Felementar","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mitica%2Felementar/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mitica%2Felementar/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mitica%2Felementar/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mitica","download_url":"https://codeload.github.com/mitica/elementar/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mitica%2Felementar/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33045145,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-13T13:14:54.681Z","status":"online","status_checked_at":"2026-05-14T02:00:06.663Z","response_time":57,"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":["elementar","html","html-simplifier","simplifier"],"created_at":"2024-11-10T00:20:43.988Z","updated_at":"2026-05-14T22:03:27.676Z","avatar_url":"https://github.com/mitica.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# elementar\n\n**Elementar** is a content-oriented HTML simplifier.\n\n## Usage\n\n```js\nimport { fromHtml } from 'elementar';\n\nconst elementar = fromHtml('\u003cp\u003e\u003cstrong\u003eHere\u003c/strong\u003e is the \u003ci\u003eanswer\u003c/i\u003e!\u003cspan\u003e\u003c/span\u003e\u003c/p\u003e');\nconsole.log(elementar.html()) // \u003cp\u003eHere is the answer!\u003c/p\u003e\nconsole.log(elementar.xml()) // \u003cp\u003e\u003ctext\u003eHere is the answer!\u003c/text\u003e\u003c/p\u003e\nconsole.log(elementar.text()) // Here is the answer!\n\n```\n\n## API\n\n### fromHtml(html: string, options?: ElementarOptions): Elementar\n\nSee [options](src/options.ts).\n\n### Elementar\n\n### .html(): string\n\nReturns the processed html.\n\n### .xml(): string\n\nReturns the processed html as xml.\n\n### .text(): string\n\nReturns the text from html.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmitica%2Felementar","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmitica%2Felementar","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmitica%2Felementar/lists"}