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

& transforms to & which is a problem in xml #22

Open
tobiaszuercher opened this issue Sep 16, 2016 · 0 comments
Open

& transforms to & which is a problem in xml #22

tobiaszuercher opened this issue Sep 16, 2016 · 0 comments
Labels

Comments

@tobiaszuercher
Copy link
Owner

tobiaszuercher commented Sep 16, 2016

bug description

because the environment file is xml, we need to html encode characters like for example "&". example:

<variable name="url" value="www.google.ch?q=tobi&amp;anotherParameter=1337" />

but if this variable gets used in an template which is a xml file:

<add key="url" value="${url}" />

it will html decode the value:

<add key="url" value="www.google.ch?q=tobi&anotherParameter=1337" />

which is invalid xml.

current workaround:

In environment file: &xxx; -> &xxx;xxx;

<variable name="url" value="www.google.ch?q=tobi&amp;amp;anotherParameter=1337" />

idea how to fix

in a template, give the user the ability to apply a filter for the value ${url | htmlencode}

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

No branches or pull requests

1 participant