如何在html链接中使用两个后续的ASCII编码字符?

时间:2019-03-27 15:25:52

标签: html url href mailto

我希望我的电子邮件链接将电子邮件设置为:

 Some text & some other text

我的标签是

<a href="mailto:somemail@example.com?Subject=Some%20text%20%26%20some%20other%20text">mailto</a>

,它将“主题”仅设置为

Some text

如何正确编写%20%26%20(“&”)部分?

谢谢

1 个答案:

答案 0 :(得分:0)

mailto:somemail@example.com?subject=some%20text%20%26%20some%20other%20text


我创建了一个开源工具来简化此过程。输入所需的字符串,您将立即获得mailto

mailto.now.sh

  

⚡️mailto中的完整电子邮件模板

website demo