Skip to content

Support application-wide defaultHtmlEscape setting in WebFlux RequestContext#36400

Closed
husseinvr97 wants to merge 1 commit intospring-projects:mainfrom
husseinvr97:fix/webflux-default-html-escape
Closed

Support application-wide defaultHtmlEscape setting in WebFlux RequestContext#36400
husseinvr97 wants to merge 1 commit intospring-projects:mainfrom
husseinvr97:fix/webflux-default-html-escape

Conversation

@husseinvr97
Copy link
Contributor

Addresses the TODO comments in the reactive RequestContext class by
introducing support for an application-wide defaultHtmlEscape setting
in WebFlux, similar to what the servlet stack provides via web.xml.

The setting can be configured programmatically via WebHttpHandlerBuilder:

WebHttpHandlerBuilder.webHandler(...)
    .defaultHtmlEscape(true)
    .build();

Closes gh-36378

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged or decided on label Feb 28, 2026
@husseinvr97 husseinvr97 force-pushed the fix/webflux-default-html-escape branch from 21ff48a to e09cb3a Compare February 28, 2026 17:50
@sbrannen sbrannen requested a review from rstoyanchev March 1, 2026 12:23
@sbrannen sbrannen added in: web Issues in web modules (web, webmvc, webflux, websocket) type: enhancement A general enhancement labels Mar 1, 2026
@sbrannen sbrannen changed the title Support application-wide defaultHtmlEscape setting in WebFlux Request… Support application-wide defaultHtmlEscape setting in WebFlux RequestContext Mar 1, 2026
@rstoyanchev rstoyanchev self-assigned this Mar 2, 2026
@rstoyanchev rstoyanchev removed the status: waiting-for-triage An issue we've not yet triaged or decided on label Mar 2, 2026
@rstoyanchev rstoyanchev added this to the 7.0.6 milestone Mar 2, 2026
…Context

Closes spring-projectsgh-36378

Signed-off-by: husseinvr97 <[email protected]>

git commit --amend --signoff#

Signed-off-by: husseinvr97 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

in: web Issues in web modules (web, webmvc, webflux, websocket) type: enhancement A general enhancement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support application-wide defaultHtmlEscape setting in WebFlux

4 participants