Skip to content

Support application-wide defaultHtmlEscape setting in WebFlux RequestContext#36400

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

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

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

…Context

Closes spring-projectsgh-36378

Signed-off-by: husseinvr97 <husseinmustafabas05@gmail.com>

git commit --amend --signoff#
@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
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) status: waiting-for-triage An issue we've not yet triaged or decided on 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

3 participants