在电子邮件中显示<script>标记

sup*_*nic 1 html javascript email html-email

好吧这看起来很简单,但我想不出解决方案.所以救援.

我试图在<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>
Run Code Online (Sandbox Code Playgroud)

问题是脚本文本没有显示在电子邮件中.如何将其显示为简单文本而不将电子邮件客户端删除?

谢谢

meh*_*hdi 7

使用&lt;&gt;发送标签.

就像:

&lt;script src="widget"&gt;
&lt;/script &gt;
Run Code Online (Sandbox Code Playgroud)

输出:

<script src ="widget">

</ script>