How do I stop Gmail from stripping the values out of URLs?

后端 未结 4 1937
时光取名叫无心
时光取名叫无心 2021-02-19 20:43

I recently learned that webmail clients like Gmail will do alterations on HTML emails, for example adding target=\"_blank\" to tags.

4条回答
  •  耶瑟儿~
    2021-02-19 21:41

    Click View original/source on the message in Gmail to see if the URLs looks like they should then. If so you know that the problem is how Gmail is formatting the message for your viewing. If it's mutilated even in the source I was wondering if there's anything in your webpage/php/CMS (do you use one) that changes the code.

    You should try URL-encoding as @Crisp said. Here's the W3 reference.

提交回复
热议问题