{"id":18599349,"url":"https://github.com/bkawk/caja-sanitizer","last_synced_at":"2026-02-11T12:06:25.850Z","repository":{"id":106273527,"uuid":"94042916","full_name":"bkawk/caja-sanitizer","owner":"bkawk","description":"A polymer 2.0 component that sanitizes html and css","archived":false,"fork":false,"pushed_at":"2017-06-12T12:56:19.000Z","size":32,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-01T05:37:03.006Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"HTML","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/bkawk.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-06-12T01:20:51.000Z","updated_at":"2017-06-12T01:54:05.000Z","dependencies_parsed_at":"2023-04-01T02:17:49.418Z","dependency_job_id":null,"html_url":"https://github.com/bkawk/caja-sanitizer","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/bkawk/caja-sanitizer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bkawk%2Fcaja-sanitizer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bkawk%2Fcaja-sanitizer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bkawk%2Fcaja-sanitizer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bkawk%2Fcaja-sanitizer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bkawk","download_url":"https://codeload.github.com/bkawk/caja-sanitizer/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bkawk%2Fcaja-sanitizer/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271910482,"owners_count":24842357,"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-08-24T02:00:11.135Z","response_time":111,"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-07T01:38:45.543Z","updated_at":"2026-02-11T12:06:20.817Z","avatar_url":"https://github.com/bkawk.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# \\\u003ccaja-sanitizer\\\u003e\n\n\n\n## Import the sanitizer\n```\u003clink rel=\"import\" href=\"../bower_components/caja-sanitizer/caja-sanitizer.html\"\u003e```\n\n## Insert the Element\n\n```\n\u003ccaja-sanitizer id=\"cajaSanitizer\"\u003e\u003c/caja-sanitizer\u003e\n```\n\n\n## Call the sanitizer\nThe response will be a promise\n```\nconst dirtyString = \"\u003cp\u003eHello, \u003cb onclick=alert(1337)\u003eWorld\u003c/b\u003e!\u003c/p\u003e\"\nthis.$.cajaSanitizer.sanitize(dirtyString)\n.then((sanitized) =\u003e {\n    console.debug(sanitized)\n})\n.catch((err) =\u003e {\n    console.error(err)\n})\n```\n\n## Pass to the sanitizer\n\n```\n\u003ccaja-sanitizer input=\"[[input]] output=\"{{output}}\"\u003e\u003c/caja-sanitizer\u003e\n```\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbkawk%2Fcaja-sanitizer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbkawk%2Fcaja-sanitizer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbkawk%2Fcaja-sanitizer/lists"}