[
https://issues.apache.org/jira/browse/VELTOOLS-164?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Claude Brisson closed VELTOOLS-164.
-----------------------------------
> EscapeTool#url() does not escape the '&' character
> --------------------------------------------------
>
> Key: VELTOOLS-164
> URL: https://issues.apache.org/jira/browse/VELTOOLS-164
> Project: Velocity Tools
> Issue Type: Bug
> Reporter: Guillaume Delhumeau
> Assignee: Claude Brisson
> Priority: Major
>
> Steps to reproduce:
> {code}
> ## 1: Create a map
> #set($urlParametersMap = {'a': '1', 'b': 2})
> ## 2: Display the escaped map
> $escapetool.url($urlParametersMap)
> {code}
> It returns:
> {code}
> ?a=1&b=2
> {code}
> Which is not correct according to my HTML5 validator.
> I would like to have:
> {code}
> ?a=1&b=2
> {code}
> Maybe it is not a bug but actually the intended behaviour, since I can still
> do:
> {code}
> $escapetool.xml($escapetool.url($urlParametersMap))
> {code}
> Thanks,
> Guillaume
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]