{"id":22973607,"url":"https://github.com/9dl/awesome-sanitizers","last_synced_at":"2026-01-30T04:22:44.656Z","repository":{"id":265276394,"uuid":"895656344","full_name":"9dl/Awesome-Sanitizers","owner":"9dl","description":"Awesome Sanitizers for every language to prevent injection attacks effortlessly.","archived":false,"fork":false,"pushed_at":"2024-11-28T16:35:00.000Z","size":7,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-12T03:02:24.553Z","etag":null,"topics":["decoding","disallowed-chars","injection","injection-attack","injection-attacks","parameter","protect","sanitization","sanitize","sanitizers"],"latest_commit_sha":null,"homepage":"","language":"C#","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/9dl.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":"2024-11-28T16:08:57.000Z","updated_at":"2024-12-21T22:23:49.000Z","dependencies_parsed_at":"2024-11-28T17:39:49.615Z","dependency_job_id":null,"html_url":"https://github.com/9dl/Awesome-Sanitizers","commit_stats":null,"previous_names":["9dl/awesome-sanitizers"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/9dl%2FAwesome-Sanitizers","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/9dl%2FAwesome-Sanitizers/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/9dl%2FAwesome-Sanitizers/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/9dl%2FAwesome-Sanitizers/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/9dl","download_url":"https://codeload.github.com/9dl/Awesome-Sanitizers/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249768060,"owners_count":21322872,"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":["decoding","disallowed-chars","injection","injection-attack","injection-attacks","parameter","protect","sanitization","sanitize","sanitizers"],"created_at":"2024-12-14T23:57:31.720Z","updated_at":"2026-01-30T04:22:39.636Z","avatar_url":"https://github.com/9dl.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Awesome-Sanitizers 🔒\n\nA collection of sanitizer implementations across multiple programming languages, designed to prevent injection attacks by cleaning and decoding user input. 🚫\n\n## Features ✨\n\n- **HTML Decoding**: Automatically decodes HTML entities (e.g., `\u0026lt;` → `\u003c`).\n- **Disallowed Character Removal**: Removes dangerous characters 🛑.\n- **Space Trimming**: Removes spaces from the start and end of input ✂️.\n- **Multi-Language Support**: Includes sanitizer implementations in multiple languages (e.g., Go, C#) 🌍.\n\n## Languages 🖥️\n\nThe repository contains sanitizers implemented in the following languages:\n\n- **Go**: Available in `golang/`\n- **C#**: Available in `csharp/`\n- **Py**: Available in `python/`\n- *(More languages coming soon!)*\n\n## Usage 💻\n\nEach language folder contains its own implementation. To use a sanitizer in your project, simply copy the implementation into your codebase and call the `Sanitize` function with the input you want to sanitize.\n\n### Example 📋\n\n```bash\nOriginal: %27; DROP TABLE users;\nSanitized: DROP TABLE users\n```\n\n## Contributing 🤝\n\n1. Fork the repository.\n2. Create your feature branch (`git checkout -b feature/your-feature`).\n3. Commit your changes (`git commit -m 'Add some feature'`).\n4. Push to the branch (`git push origin feature/your-feature`).\n5. Open a pull request to merge your changes.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F9dl%2Fawesome-sanitizers","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F9dl%2Fawesome-sanitizers","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F9dl%2Fawesome-sanitizers/lists"}