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

Unable to escape & from the message #33

Open
raghav-aj opened this issue Feb 29, 2020 · 1 comment
Open

Unable to escape & from the message #33

raghav-aj opened this issue Feb 29, 2020 · 1 comment

Comments

@raghav-aj
Copy link

raghav-aj commented Feb 29, 2020

Hello raymond dev team,

When there is & in the input string to Exec(), it returns &. When I pass the output of Exec() to url.QueryEscape() or url.PathEscape(), I get %26amp%3B and &amp%3B respectively.
This is happening for a quote(') also.

Because of this, what I am doing is I am replacing & with & and ' with '.

Is there any way to skip the encoding of & and ' or any special character in Exec()? Is there any better way to handle this?

I cannot change the template/source contents. It uses {{ . I cannot change these to the triple mustache {{{

Thanks,
Raghav

@raghav-aj raghav-aj changed the title Unable to parse & from the message Unable to escape & from the message Feb 29, 2020
@cosmotek
Copy link

Im having the same issue.

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