Skip to content

Support spring.webflux.default-html-escape property for application-wide HTML escaping configuration#49791

Merged
snicoll merged 2 commits intospring-projects:mainfrom
husseinvr97:gh-49623-default-html-escape-property
Mar 26, 2026
Merged

Support spring.webflux.default-html-escape property for application-wide HTML escaping configuration#49791
snicoll merged 2 commits intospring-projects:mainfrom
husseinvr97:gh-49623-default-html-escape-property

Conversation

@husseinvr97
Copy link
Copy Markdown
Contributor

@husseinvr97 husseinvr97 commented Mar 25, 2026

Adds spring.webflux.default-html-escape property to allow configuring application-wide HTML escaping in WebFlux applications.

This builds on the programmatic support added to Spring Framework 7.0.6 (spring-projects/spring-framework#36400) by exposing the setting as a property, giving WebFlux applications the same property-based configuration experience that Spring MVC applications have always had.

With this change, WebFlux applications can configure HTML escaping globally via application.properties:
properties spring.webflux.default-html-escape=true

Closes #49623

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Mar 25, 2026
@philwebb philwebb added type: enhancement A general enhancement and removed status: waiting-for-triage An issue we've not yet triaged labels Mar 25, 2026
@philwebb philwebb added this to the 4.1.x milestone Mar 25, 2026
@snicoll snicoll changed the title Support spring.webflux.default-html-escape property Support spring.webflux.default-html-escape property for application-wide HTML escaping configuration Mar 26, 2026
@snicoll snicoll self-assigned this Mar 26, 2026
@snicoll snicoll force-pushed the gh-49623-default-html-escape-property branch from bfd2663 to c747c9c Compare March 26, 2026 14:16
@snicoll snicoll modified the milestones: 4.1.x, 4.1.0-RC1 Mar 26, 2026
@snicoll snicoll merged commit bafdae6 into spring-projects:main Mar 26, 2026
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: enhancement A general enhancement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support spring.webflux.default-html-escape property for application-wide HTML escaping configuration

4 participants