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

th:text does not escape 0x1f (UNIT SEPARATOR) character for xml/html #769

Closed
lgawron opened this issue Nov 7, 2019 · 1 comment
Closed
Assignees

Comments

@lgawron
Copy link

lgawron commented Nov 7, 2019

0x1f character (UNIT SEPARATOR) is not allowed for xml/html documents yet the value is not escaped thus rendering the generated xml unparseable.

If you do not treat this as bug, as there is no clear escape replacement for 0x1f (as with " > <) is there any way to plug in some additional escaping logic into the engine?

@danielfernandez
Copy link
Member

Thymeleaf makes use of Unbescape's Level1 HTML escaping, as explained here.

I've added this to Unbescape here: unbescape/unbescape#29

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants