{"id":18118010,"url":"https://github.com/mozilla/sanitizer-polyfill","last_synced_at":"2025-04-10T16:32:23.321Z","repository":{"id":37930679,"uuid":"362485381","full_name":"mozilla/sanitizer-polyfill","owner":"mozilla","description":"rewrite constructor arguments, call DOMPurify, profit","archived":false,"fork":false,"pushed_at":"2024-09-24T20:13:15.000Z","size":878,"stargazers_count":67,"open_issues_count":16,"forks_count":8,"subscribers_count":6,"default_branch":"main","last_synced_at":"2024-10-29T23:50:56.410Z","etag":null,"topics":["polyfill","security","webapi","xss"],"latest_commit_sha":null,"homepage":"https://mozilla.github.io/sanitizer-polyfill/demo/","language":"JavaScript","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/mozilla.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-04-28T13:53:11.000Z","updated_at":"2024-10-11T11:21:35.000Z","dependencies_parsed_at":"2023-02-14T06:46:02.415Z","dependency_job_id":"09a87c72-8b3e-496f-a6cb-84437d0da14b","html_url":"https://github.com/mozilla/sanitizer-polyfill","commit_stats":{"total_commits":296,"total_committers":12,"mean_commits":"24.666666666666668","dds":"0.28716216216216217","last_synced_commit":"de72a7503aa616bee27dde00bbc32fdae26751c1"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mozilla%2Fsanitizer-polyfill","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mozilla%2Fsanitizer-polyfill/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mozilla%2Fsanitizer-polyfill/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mozilla%2Fsanitizer-polyfill/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mozilla","download_url":"https://codeload.github.com/mozilla/sanitizer-polyfill/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247750082,"owners_count":20989742,"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":["polyfill","security","webapi","xss"],"created_at":"2024-11-01T05:07:44.448Z","updated_at":"2025-04-10T16:32:23.295Z","avatar_url":"https://github.com/mozilla.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Polyfill for the [Sanitizer API](https://github.com/WICG/sanitizer-api/) specification.\n\n## Usage\n\n**The Sanitizer API is still under heavy development. We do not recommend\nrelying on the polyfill for stability and can not fully promise the same\nsecurity guarantees as the finished API will.**\n\n## About\n\nThe polyfill might provide a shim on top of\n[DOMPurify](https://github.com/cure53/DOMPurify/), that mainly rewrites the\nspecified configuration object into a DOMPurify configuration.\n\nDOMPurify is more interesting than other libraries, as it relies on the\ncurrent browser's HTML parsing behavior (it is built on top of the\n[NodeIterator](https://developer.mozilla.org/en-US/docs/Web/API/NodeIterator)\ninterface).\n\n### [Demo](https://mozilla.github.io/sanitizer-polyfill/demo/)\n\nThere's a [Demo](https://mozilla.github.io/sanitizer-polyfill/demo/) page that loads all of the polyfill scripts and then does nothing.\nBy default, the polyfill will bail out if you already have a Sanitizer object defined.\nBut that can be easily overridden by clicking the **¶**.\n\nIt might useful to test `Element.setHTML`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmozilla%2Fsanitizer-polyfill","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmozilla%2Fsanitizer-polyfill","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmozilla%2Fsanitizer-polyfill/lists"}