Set a mailto link with a subject containing an ampersand (&)

后端 未结 2 745
慢半拍i
慢半拍i 2021-01-03 20:29

Im using the following mailto link to send an email:

          


        
相关标签:
2条回答
  • 2021-01-03 20:46

    use %26 for the & in the subject.

    0 讨论(0)
  • 2021-01-03 20:50

    In order to get special/reserved characters into a URL, you must encode them - to get an & to work, it must be encoded to %26.

    More details here: http://www.w3schools.com/tags/ref_urlencode.asp

    0 讨论(0)
提交回复
热议问题