{"id":13858563,"url":"https://github.com/altmetric/decontaminator","last_synced_at":"2025-04-06T13:11:19.875Z","repository":{"id":36356740,"uuid":"40661521","full_name":"altmetric/decontaminator","owner":"altmetric","description":"Ruby HTML sanitizer based on a lightweight Oga parser.","archived":false,"fork":false,"pushed_at":"2024-11-29T17:11:41.000Z","size":19,"stargazers_count":39,"open_issues_count":0,"forks_count":1,"subscribers_count":14,"default_branch":"main","last_synced_at":"2025-03-30T12:07:43.591Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Ruby","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/altmetric.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.txt","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":"2015-08-13T13:55:56.000Z","updated_at":"2024-11-29T17:11:38.000Z","dependencies_parsed_at":"2024-12-16T18:30:30.478Z","dependency_job_id":"9650e585-0696-443e-a9b9-408509e4ce66","html_url":"https://github.com/altmetric/decontaminator","commit_stats":{"total_commits":27,"total_committers":3,"mean_commits":9.0,"dds":"0.18518518518518523","last_synced_commit":"4914ab491819285c2b64631307ea9a6dac8bae76"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/altmetric%2Fdecontaminator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/altmetric%2Fdecontaminator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/altmetric%2Fdecontaminator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/altmetric%2Fdecontaminator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/altmetric","download_url":"https://codeload.github.com/altmetric/decontaminator/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247485287,"owners_count":20946398,"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-08-05T03:02:13.500Z","updated_at":"2025-04-06T13:11:19.857Z","avatar_url":"https://github.com/altmetric.png","language":"Ruby","funding_links":[],"categories":["Ruby"],"sub_categories":[],"readme":"# Decontaminator\n\nRuby HTML sanitizer based on a lightweight Oga parser.\n\n**Current version:** 1.0.2\n\n**Supported Ruby versions:** \u003e= 2.7\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'decontaminator'\n```\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install decontaminator\n\n## Usage\n\n```ruby\nrequire 'decontaminator'\n\ninput = '\u003ch1\u003eHeading\u003c/h1\u003e\u003cp\u003eLorem ipsum...\u003c/p\u003e\u003cscript\u003ealert(1)\u003c/script\u003e'\nfragment = Decontaminator::Fragment.new(input)\nputs fragment.decontaminate.inspect\n\" Heading  Lorem ipsum... \"\n```\n\n## Contributing\n\n1. Fork it ( https://github.com/altmetric/decontaminator/fork )\n2. Create your feature branch (`git checkout -b my-new-feature`)\n3. Commit your changes (`git commit -am 'Add some feature'`)\n4. Push to the branch (`git push origin my-new-feature`)\n5. Create a new Pull Request\n\n## License\n\nCopyright © 2015-2024 Altmetric LLP\n\nDistributed under the [MIT license](https://github.com/altmetric/decontaminator/blob/master/LICENSE.txt).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faltmetric%2Fdecontaminator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faltmetric%2Fdecontaminator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faltmetric%2Fdecontaminator/lists"}