{"id":20940394,"url":"https://github.com/fedora-python/lxml_html_clean","last_synced_at":"2025-05-13T22:32:17.002Z","repository":{"id":203086565,"uuid":"708778179","full_name":"fedora-python/lxml_html_clean","owner":"fedora-python","description":"Separate project for HTML cleaning functionalities copied from lxml.html.clean.","archived":false,"fork":false,"pushed_at":"2025-04-09T11:33:25.000Z","size":199,"stargazers_count":6,"open_issues_count":0,"forks_count":4,"subscribers_count":8,"default_branch":"main","last_synced_at":"2025-05-10T03:23:39.791Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fedora-python.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGES.rst","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":"2023-10-23T11:26:16.000Z","updated_at":"2025-04-09T11:33:30.000Z","dependencies_parsed_at":null,"dependency_job_id":"9620411a-e9a7-4a10-bbb4-0439ff00a812","html_url":"https://github.com/fedora-python/lxml_html_clean","commit_stats":null,"previous_names":["fedora-python/lxml_html_clean"],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fedora-python%2Flxml_html_clean","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fedora-python%2Flxml_html_clean/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fedora-python%2Flxml_html_clean/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fedora-python%2Flxml_html_clean/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fedora-python","download_url":"https://codeload.github.com/fedora-python/lxml_html_clean/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254036821,"owners_count":22003659,"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-11-18T23:10:11.690Z","updated_at":"2025-05-13T22:32:16.165Z","avatar_url":"https://github.com/fedora-python.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# lxml_html_clean\n\n## Motivation\n\nThis project was initially a part of [lxml](https://github.com/lxml/lxml). Because HTML cleaner is designed as blocklist-based, many reports about possible security vulnerabilities were filed for lxml and that make the project problematic for security-sensitive environments. Therefore we decided to extract the problematic part to a separate project.\n\n**Important**: the HTML Cleaner in ``lxml_html_clean`` is **not** considered appropriate **for security sensitive environments**. See e.g. [bleach](https://pypi.org/project/bleach/) for an alternative.\n\nThis project uses functions from Python's `urllib.parse` for URL parsing which **do not validate inputs**. For more information on potential security risks, refer to the [URL parsing security](https://docs.python.org/3/library/urllib.parse.html#url-parsing-security) documentation. A maliciously crafted URL could potentially bypass the allowed hosts check in `Cleaner`.\n\n## Installation\n\nYou can install this project directly via `pip install lxml_html_clean` or as an extra of lxml\nvia `pip install lxml[html_clean]`. Both ways install this project together with lxml itself.\n\n## Security\n\nFor discussions regarding security-related issues or any sensitive reports, please contact us privately.\nYou can reach out to lbalhar(at)redhat.com or frenzy.madness(at)gmail.com to ensure your concerns\nare addressed confidentially and securely.\n\n## Documentation\n\n[https://lxml-html-clean.readthedocs.io/](https://lxml-html-clean.readthedocs.io/)\n\n## License\n\nBSD-3-Clause\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffedora-python%2Flxml_html_clean","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffedora-python%2Flxml_html_clean","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffedora-python%2Flxml_html_clean/lists"}