Skip to content

Add full HTML Sanitizer configuration reference#21993

Open
lacatoire wants to merge 1 commit intosymfony:7.4from
lacatoire:docs/html-sanitizer-config-reference
Open

Add full HTML Sanitizer configuration reference#21993
lacatoire wants to merge 1 commit intosymfony:7.4from
lacatoire:docs/html-sanitizer-config-reference

Conversation

@lacatoire
Copy link
Contributor

Summary

  • Replace the stub html_sanitizer section in the Framework Configuration Reference with full documentation of all configuration options
  • Document all sanitizer options: default_action, allow_safe_elements, allow_static_elements, allow_elements, block_elements, drop_elements, allow_attributes, drop_attributes, force_attributes, force_https_urls, allowed_link_schemes, allowed_link_hosts, allow_relative_links, allowed_media_schemes, allowed_media_hosts, allow_relative_medias, with_attribute_sanitizers, without_attribute_sanitizers, max_input_length

Fixes #21987

@carsonbot carsonbot added this to the 7.4 milestone Feb 12, 2026
@carsonbot carsonbot changed the title Add full HTML Sanitizer configuration reference Add full HTML Sanitizer configuration reference Feb 12, 2026
@lacatoire lacatoire force-pushed the docs/html-sanitizer-config-reference branch from e20c67b to bf5ae83 Compare February 12, 2026 18:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add HTML Sanitizer configuration to Framework Configuration Reference

2 participants