xml - XSTL 电子邮件在 outlook.com 上显示完整链接
问题描述
应该在 IMG 后面的链接显示为 [www.somewebsite.com] 它带有括号作为功能链接。
只有在 Outlook 应用程序本身的 outlook.com 中,它才能像在 gmail.com 中一样正常工作
我目前已更改为此解决方案以传递 IMG
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="xhtml" version="4.0" encoding="utf-8" indent="yes"/>
<xsl:element name="a">
<xsl:attribute name="href">
<xsl:value-of select="DynamicLink"/>
</xsl:attribute>
<xsl:value-of select="DynamicLink"/>\
<img src="someimg.jpg"/>
<p> Some text </p>
</xsl:element>
</xsl:stylesheet>
我已经尝试过<a href="{myUrl}"><xsl:value-of select="DynamicLink"/></a>
,但那个在 Outlook 应用程序和 Outlook.com 中都被破坏了
硬编码<a href="">
可以正常工作,但由于 DynamicLink 包含需要在站点上解析的 JSON 数据,因此它删除了功能。以前的解决方案使用 xml 节点交换,所以我在另一个节点内部有一个节点,我会交换那些在 Outlook 和 gmail 中工作但在 outlook.com 中中断的节点
以前有没有人遇到过这个问题,或者有没有办法在 outlook.com 的情况下选择退出硬编码链接。
解决方案
似乎整个问题可能只是链接需要包含在href中"https://"
推荐阅读
- r - 确保在 CSV 输出中保持长数字
- regex - 使用正则表达式将 kebab-case 转换为 PascalCase
- c# - 如何处理我的 DataSet 中的“Out Of Index”异常?
- azure - 使用此脚本存储 azure 快照的位置
- java - 带有 https 域的 JiraClient (java) 的 SSL 握手异常
- linq - 2sxc - 获取日历数据
- nltk - 在文本中添加标点符号
- ios - 如何从不同的单元格中获取值?
- c# - 带有延迟的 Unity 按钮(等待几秒钟)
- javascript - 如何将我的代码从 jquery 中的输入复选框行更改为可点击的行?