{"id":20901441,"url":"https://github.com/p-jackson/entities","last_synced_at":"2025-07-31T09:04:50.054Z","repository":{"id":57625131,"uuid":"75468981","full_name":"p-jackson/entities","owner":"p-jackson","description":"Provides the raw data needed to convert to and from HTML entities.","archived":false,"fork":false,"pushed_at":"2023-04-10T11:50:54.000Z","size":124,"stargazers_count":3,"open_issues_count":2,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-05-21T10:40:34.082Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","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/p-jackson.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":"2016-12-03T11:12:43.000Z","updated_at":"2023-03-16T08:45:24.000Z","dependencies_parsed_at":"2024-11-19T04:16:25.713Z","dependency_job_id":null,"html_url":"https://github.com/p-jackson/entities","commit_stats":{"total_commits":34,"total_committers":1,"mean_commits":34.0,"dds":0.0,"last_synced_commit":"1d166204433c2ee7931251a5494f94c7e35be9d6"},"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/p-jackson/entities","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/p-jackson%2Fentities","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/p-jackson%2Fentities/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/p-jackson%2Fentities/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/p-jackson%2Fentities/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/p-jackson","download_url":"https://codeload.github.com/p-jackson/entities/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/p-jackson%2Fentities/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268016309,"owners_count":24181651,"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-07-31T02:00:08.723Z","response_time":66,"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":[],"created_at":"2024-11-18T11:32:01.205Z","updated_at":"2025-07-31T09:04:49.999Z","avatar_url":"https://github.com/p-jackson.png","language":"Rust","readme":"# entities [![Build status](https://github.com/p-jackson/entities/actions/workflows/ci.yml/badge.svg)](https://github.com/p-jackson/entities/actions/workflows/ci.yml) [![Crates.io](https://img.shields.io/crates/v/entities.svg?maxAge=3600)](https://crates.io/crates/entities)\n\nProvides the raw data needed to convert to and from HTML entities.\n\n## Basic Usage\n\n```rust\nuse entities::ENTITIES;\n\nfn main() {\n    let entity = ENTITIES\n        .iter()\n        .find(|e| e.entity == \"\u0026gt;\")\n        .unwrap();\n\n    assert_eq!(entity.characters, \"\u003e\");\n    assert_eq!(entity.entity, \"\u0026gt;\");\n}\n```\n\nThere isn't a 1-to-1 mapping of entities to \"characters\" which is why this\ncrate provides a flat array rather than a map\u0026mdash;the best way to map the\nentities depends on the problem _you're_ trying to solve.\n\nIf you want to create a mapping structure you can make one using static `str`\nslices to reuse the statically allocated strings from this crate e.g.\n\n```rust\nfn make_mapping() -\u003e HashMap\u003c\u0026'static str, \u0026'static str\u003e {\n    let mut mapping = HashMap::new();\n    mapping.insert(ENTITIES[0].entity, ENTITIES[0].characters);\n    mapping\n}\n```\n\n## Documentation\n\n[https://docs.rs/entities](https://docs.rs/entities)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fp-jackson%2Fentities","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fp-jackson%2Fentities","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fp-jackson%2Fentities/lists"}