Reputation: 744
Following is the activation link prepared at server side and sent in an email. When it's viewed in html and click on this link, there is no issue. When opened in text mode, '&' before the emailId is rendered as '&' This breaks the activation link.
If you're unable to click on the link, copy the URL below and paste it into your browser manually.
https://test.abc.com//#_resetpassword?token=EUDaPcNf8bctWAed0w$$&[email protected]
When email is viewed in text mode:
If you're unable to click on the link, copy the URL below and paste it into your browser manually.
https://test.abc.com//#_resetpassword?token=EUDaPcNf8bctWAed0w$$&[email protected]
Any help?
Upvotes: 1
Views: 226
Reputation: 744
Well, this issue got resolved. We used npm enj module and we escaped & with <%= %>. It replaced & with & However, <%- %> did the trick. It kept & as it is. This worked for me in both html mode and also in text mode.
Upvotes: 1
Reputation: 113
is this processed through PHP? there may be a filter for that output. e.g. mysql_real_escape_string-like function or a http://php.net/manual/en/function.filter-input.php filter_input (or similair function) that sanitizes the string output.
Upvotes: 0