admin管理员组文章数量:1418104
OK this seems simple enough, but I can't think of a solution. SO to the rescue.
I am trying to add a <script></script>
tag to an email, not for the purposes of running the script, but so the user can copy and paste it in their websites. So for example the email might say:
Simply copy the text below and paste it into you webpages where you would like widget to be displayed:
<script src="widget"></script>
The problem is the script text is not displayed in the email. How can I display it as simple text and not have the email client remove it?
Thanks
OK this seems simple enough, but I can't think of a solution. SO to the rescue.
I am trying to add a <script></script>
tag to an email, not for the purposes of running the script, but so the user can copy and paste it in their websites. So for example the email might say:
Simply copy the text below and paste it into you webpages where you would like widget to be displayed:
<script src="widget"></script>
The problem is the script text is not displayed in the email. How can I display it as simple text and not have the email client remove it?
Thanks
Share Improve this question asked Oct 24, 2013 at 12:56 superphonicsuperphonic 8,0846 gold badges34 silver badges64 bronze badges 1-
2
It might be detecting it as spammy/malicious, or you haven't escaped your start and end tags properly (
<
and>
). – Qantas 94 Heavy Commented Oct 24, 2013 at 12:57
1 Answer
Reset to default 7use <
and >
for send tags.
just like:
<script src="widget">
</script >
output:
<script src="widget">
</script >
本文标签: javascriptDisplaying a ltscriptgt tag in an emailStack Overflow
版权声明:本文标题:javascript - Displaying a <script> tag in an email - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1745191881a2646949.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论