You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 &%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
The text was updated successfully, but these errors were encountered:
raghav-aj
changed the title
Unable to parse & from the message
Unable to escape & from the message
Feb 29, 2020
Hello raymond dev team,
When there is & in the input string to
Exec()
, it returns&
. When I pass the output ofExec()
tourl.QueryEscape()
orurl.PathEscape()
, I get %26amp%3B and &%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 inExec()
? 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
The text was updated successfully, but these errors were encountered: