Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

spring:url tag should use htmlEscape instead of escapeXml for entity encoding [SPR-5605] #10276

Closed
spring-projects-issues opened this issue Mar 24, 2009 · 1 comment
Labels
in: web Issues in web modules (web, webmvc, webflux, websocket) type: enhancement A general enhancement
Milestone

Comments

@spring-projects-issues
Copy link
Collaborator

Scott Andrews opened SPR-5605 and commented

The spring:url tag currently uses 'escapeXml' as a tag attribute to indicate the value should be XML entity encoded. Other spring and form tags use 'htmlEscape' instead. This property can be set locally or page wide. Also consider supporting 'javaScriptEscape'.


Affects: 3.0 M2

Referenced from: commits 99fa91d

@spring-projects-issues
Copy link
Collaborator Author

Scott Andrews commented

escapeXml has been replaced by htmlEscape which behaves similarly to other spring tags. Also implemented javaScriptEscape for URLs rendered directly to JS.

Also updated the Pet Clinic sample to reflect the attribute name change.

@spring-projects-issues spring-projects-issues added type: enhancement A general enhancement in: web Issues in web modules (web, webmvc, webflux, websocket) labels Jan 11, 2019
@spring-projects-issues spring-projects-issues added this to the 3.0 M3 milestone Jan 11, 2019
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

No branches or pull requests

1 participant