<p>Thinking about it, I suppose we could split the string on '?' and escape each part separately - that should work</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br>Reply to this email directly or <a href='https://github.com/openstreetmap/openstreetmap-website/commit/61bb31ebdddc9e7c317a1c6784a68874d5a0ef80#commitcomment-4742015'>view it on GitHub</a>.<img src='https://github.com/notifications/beacon/uTRSc6ihLa7Shf84BpiOpkzeFIIhcBt9Ci-xu71ybDxfmRNAWt5QSkXaYq-BxX7f.gif' height='1' width='1'></p>