{"id":19426508,"url":"https://github.com/gordonzhang2024/xss-shield","last_synced_at":"2025-04-24T17:31:08.737Z","repository":{"id":237216342,"uuid":"794072419","full_name":"GordonZhang2024/xss-shield","owner":"GordonZhang2024","description":"A Python library to prevent your website from being attacked","archived":false,"fork":false,"pushed_at":"2025-03-22T10:10:58.000Z","size":160,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-03T08:37:18.663Z","etag":null,"topics":["python","python-3","python-package","python3","security","web","xss","xss-attacks","xss-scanner"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/xss-shield/","language":"Python","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/GordonZhang2024.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":"2024-04-30T12:02:19.000Z","updated_at":"2025-03-22T10:11:01.000Z","dependencies_parsed_at":"2024-05-01T15:39:24.261Z","dependency_job_id":"8078b291-76e4-42ad-ba45-1c41bd6a814a","html_url":"https://github.com/GordonZhang2024/xss-shield","commit_stats":null,"previous_names":["gordonzhang2024/xss-shield"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GordonZhang2024%2Fxss-shield","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GordonZhang2024%2Fxss-shield/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GordonZhang2024%2Fxss-shield/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GordonZhang2024%2Fxss-shield/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/GordonZhang2024","download_url":"https://codeload.github.com/GordonZhang2024/xss-shield/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250674276,"owners_count":21469189,"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":["python","python-3","python-package","python3","security","web","xss","xss-attacks","xss-scanner"],"created_at":"2024-11-10T14:07:49.009Z","updated_at":"2025-04-24T17:31:08.721Z","avatar_url":"https://github.com/GordonZhang2024.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ![xss-shield](https://github.com/user-attachments/assets/3349e333-d5bb-4125-afe0-bc06c8fe087b)\n\n\nA simple Python library to prevent your website from being attacked.\n\n[PyPI](https://pypi.org/project/xss-shield/)\n[GitHub](https://github.com/GordonZhang2024/xss-shield/tree/main)\n[Docs](https://xss-shield.readthedocs.io/en/latest/)\n\n![PyPI - Downloads](https://img.shields.io/pypi/dw/xss-shield)\n![PyPI - Python Version](https://img.shields.io/pypi/pyversions/xss-shield)\n![PyPI - Wheel](https://img.shields.io/pypi/wheel/xss-shield)\n![GitHub top language](https://img.shields.io/github/languages/top/GordonZhang2024/xss-shield)\n[![Documentation Status](https://readthedocs.org/projects/xss-shield/badge/?version=latest)](https://xss-shield.readthedocs.io/en/latest/?badge=latest)\n\n## Installing\nType command:\n```bash\n$ pip install xss-shield\n```\n\n## Usage\nFunction `excape(s: str, strict=True)`\n\u003e ## Arguments\n\u003e - s: the string to parse\n\u003e\n\u003e - strict:\n\u003e\u003e if not strict -\u003e\n\u003e\u003e  keep everything except `\u003cscript\u003e` tag\n\n\nexample:\n```python\nimport xss_shield\n\nunsafe_str = '\u003cscript\u003ealert(\"Bad.\");\u003c/script\u003e'\nsafe_str = xss_shield.escape(unsafe_str)\n```\n*The full example is in the `examples/` directory.*\n\n## Docs\n**The docs are availible [here](https://xss-shield.readthedocs.io/en/latest/)**\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgordonzhang2024%2Fxss-shield","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgordonzhang2024%2Fxss-shield","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgordonzhang2024%2Fxss-shield/lists"}