xhtml mailto使用说明补充
在使用mailto时,需要为邮件追加标题和内容。
按照html中的使用方法:<a href="mailto:test@test.com?subject=test&body=test content">send mail</a>
结果运行时提示错误:The reference to entity "body" must end with the ';' delimiter
?
原来在xml格式的文件中“&”需要转义,转义表如下:
修改为<a href="mailto:test@test.com?subject=test&body=test content">send mail</a>便可以了。
?
<
<
小于号
>
>
大于号
&
&
和
'
'
单引号
"
"
双引号