我的网页上有一个 anchor 标记,当前定义为:
<a href="mailto:someone@somewhere.com?subject=Welcome&body=Check this out, please click <a href='http://example.com'>here</a>">Send to a Friend</a>
如该链接所示,我正尝试在用户单击链接时在电子邮件中发送一些 HTML。但是,当文本在电子邮件编辑器中打开时,它显示为纯文本。我如何才能将其转换为 HTML 格式?
最佳答案
根据 RFC 2368,正文部分应该是文本/纯文本
Is it possible to add an HTML link in the body of a MAILTO link
关于javascript - 在 mailto anchor 标记中发送 HTML,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3165839/