src/dazzle_back/runtime/sanitizer.py¶
Generated: 2026-03-30T04:38:48.133301+00:00
Commit: 615f1354a103
Language: python
Scope: dazzle_back
Purpose¶
Input sanitization for string and text fields.
Provides HTML tag stripping to prevent XSS via the JSON API. Jinja2 auto-escaping already protects SSR views, but API responses must also be safe for client-side rendering.
Key Exports¶
strip_html_tagsstrip_dangerous_tags
Dependencies¶
Imports¶
re
Event Interactions¶
None detected.
Invariants and Assumptions¶
No invariants documented.
Tests¶
tests/integration/test_runtime_e2e.pytests/integration/test_runtime_pipeline.pytests/unit/test_runtime_test_routes.pytests/unit/test_runtime_services.pytests/unit/test_runtime_mcp_tools.py
Notes¶
This page was automatically generated by tools/gen_reference_docs.py.