aymerick / raymond

Handlebars for golang
MIT License
610 stars 101 forks source link

Unable to escape & from the message #33

Open raghav-aj opened 4 years ago

raghav-aj commented 4 years ago

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

cosmotek commented 2 years ago

Im having the same issue.