{"categories":[{"label":"Dynamic Content","url":"https://skillfed.io/packages/category/internet-www-http-dynamic-content/3"}],"enrichment":{"capability":"Integrates bleach HTML sanitization into Django models, forms, and templates to strip unsafe HTML tags and attributes from user input while preserving safe markup.","skillfed_tags":["html-sanitization","security","abandoned"],"use_cases":["Blog or CMS platforms where users write posts with basic formatting but you need to prevent script injection","Comment systems that allow limited HTML markup while blocking malicious content","User profile descriptions or bio fields that should support simple rich text","Converting URL-like strings to links in user-submitted text using the bleach_linkify filter","Rendering third-party or legacy HTML content in templates without exposing your application to embedded attacks"],"what_it_does":"django-bleach wraps bleach to make HTML sanitization a first-class feature in Django applications. It provides a BleachField model field that automatically sanitizes HTML before saving to the database, a corresponding form field for user input, and template filters for rendering untrusted content safely. The package lets you define allowed HTML tags, attributes, and CSS styles through Django settings, then applies those rules consistently across your application.\n\nThe core problem it solves is preventing XSS attacks and malformed HTML when accepting user-generated content. Instead of storing raw HTML or stripping all markup, django-bleach preserves semantic tags while removing script tags, event handlers, and other dangerous constructs. It integrates directly into Django's ORM and form layer, so sanitization happens automatically without extra middleware or view-level logic.","worth_installing":"No. The repository is archived and abandoned with no maintenance since 2023-08-05. While the code is stable and currently compatible with Django 3.2\u20134.2, there is no path forward for security patches, Django 5.0+ support, or bleach library updates. For new projects, use an actively maintained alternative or apply bleach directly in your views. For existing projects still on supported Django versions, it remains functional but carries increasing technical debt."},"id":"django-bleach","links":{"html":"https://skillfed.io/packages/django-bleach","md":"https://skillfed.io/packages/django-bleach.md","pypi":"https://pypi.org/project/django-bleach/"},"maintenance":{"status":"abandoned"},"meta":{"latest_release":"2023-08-05","license_spdx":null,"license_treatment":"permissive","name":"django-bleach","python_support":"supports_current","summary":"Easily use bleach with Django models and templates"},"popularity":{"monthly_downloads":105784,"position":12679,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"3.1.0"}
