Ash*_*han 0 html mailto email special-characters
我需要从客户端html设置主题为“&”符号。我有以下代码,
<a href="mailto:no-one@snai1mai1.com?subject=free chocolate&Body=get free hurry.">example</a>
Run Code Online (Sandbox Code Playgroud)
我需要设置电子邮件主题: free chocolate & cake
这该怎么做 ?
您需要对文本进行URL编码;变成:
<a href="mailto:no-one@snai1mai1.com?subject=free chocolate %26 cake&Body=get free hurry.">example
</a>
Run Code Online (Sandbox Code Playgroud)
%26 是的网址编码表示形式 &