{"id":16789741,"url":"https://github.com/chrissy-dev/escapehtml","last_synced_at":"2025-07-21T03:32:04.129Z","repository":{"id":90195404,"uuid":"89919851","full_name":"chrissy-dev/escapeHTML","owner":"chrissy-dev","description":"An extremely lightweight way to escape HTML elements with JavaScript","archived":false,"fork":false,"pushed_at":"2017-05-01T11:57:46.000Z","size":0,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-03-17T01:13:36.303Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/chrissy-dev.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-05-01T11:50:52.000Z","updated_at":"2017-05-01T11:57:47.000Z","dependencies_parsed_at":null,"dependency_job_id":"84e2978b-05ad-4db6-9efb-f000c4d2a917","html_url":"https://github.com/chrissy-dev/escapeHTML","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/chrissy-dev/escapeHTML","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chrissy-dev%2FescapeHTML","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chrissy-dev%2FescapeHTML/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chrissy-dev%2FescapeHTML/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chrissy-dev%2FescapeHTML/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chrissy-dev","download_url":"https://codeload.github.com/chrissy-dev/escapeHTML/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chrissy-dev%2FescapeHTML/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266235378,"owners_count":23897177,"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":[],"created_at":"2024-10-13T08:28:09.906Z","updated_at":"2025-07-21T03:32:04.112Z","avatar_url":"https://github.com/chrissy-dev.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Escape HTML\n\n\u003e An extremely light way to set elements innerHTML as textContent.\n\n\n## Usage\n\n```HTML\n\u003c!-- include escapeHTML in your HTML --\u003e\n\u003cscript type=\"text/javascript\" src=\"/path/to/escapeHTML.js\"\u003e\u003c/script\u003e\n```\n\nInitialise\n```javascript\n// Escape all innerHTML content from \u003ccode\u003e elements\nvar rawElement = escapeHTML('code')\n\n// Escape all innerHTML content from elements with given class\nvar withClass = escapeHTML('.escaped')\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchrissy-dev%2Fescapehtml","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchrissy-dev%2Fescapehtml","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchrissy-dev%2Fescapehtml/lists"}