【发布时间】:2013-11-03 04:45:10
【问题描述】:
好的,这看起来很简单,但我想不出解决方案。所以来救援。
我正在尝试将<script></script> 标记添加到电子邮件中,不是为了运行脚本,而是为了让用户可以将其复制并粘贴到他们的网站中。例如,电子邮件可能会说:
Simply copy the text below and paste it into you webpages where you would like widget to be displayed:
<script src="widget"></script>
问题是脚本文本没有显示在电子邮件中。如何将其显示为简单文本而不让电子邮件客户端将其删除?
谢谢
【问题讨论】:
-
它可能将其检测为垃圾邮件/恶意,或者您没有正确地转义开始和结束标签(
&lt;和&gt;)。
标签: javascript html email html-email