Xslt 使用HTML字符的前XSL子字符串

Xslt 使用HTML字符的前XSL子字符串,xslt,rss,substring,sharepoint-2013,html-escape-characters,Xslt,Rss,Substring,Sharepoint 2013,Html Escape Characters,我正在拉一个rss提要,其中包含一个笑话,后面有许多链接,可以在不同的服务上共享笑话。如下图所示: 值得注意的是,当我试图复制并粘贴此输出中的文本时,链接没有复制到记事本中,而是作为图片粘贴到MS Word中 在我的XSL中,我在之前使用了子字符串,试图从输出中排除这些链接,但我认为唯一可以使用的一致字符是 下面是我正在使用的XSL,它目前被硬编码为在最近一个笑话的结尾处被打破(我的下一个障碍是遍历这个列表) “以下内容用于测试,将被删除” 我通过SharePoint 2013 RS

我正在拉一个rss提要,其中包含一个笑话,后面有许多链接,可以在不同的服务上共享笑话。如下图所示:

值得注意的是,当我试图复制并粘贴此输出中的文本时,链接没有复制到记事本中,而是作为图片粘贴到MS Word中

在我的XSL中,我在之前使用了
子字符串,试图从输出中排除这些链接,但我认为唯一可以使用的一致字符是

下面是我正在使用的XSL,它目前被硬编码为在最近一个笑话的结尾处被打破(我的下一个障碍是遍历这个列表)




“以下内容用于测试,将被删除”




我通过SharePoint 2013 RSS提要web部件呈现我的输出

,试图查看我发现的解决方案的正确XML。我查看了我的源URL的页面源代码,我看到最后的字符显示如下:

    <title>Hunting with a wife #Joke #Humor</title><description>A hunter visited another hunter and was given a tour of his home. In the den was a stuffed lion.&lt;br /&gt;&lt;br /&gt;The visiting hunter asked, "when did you bag him?"&lt;br /&gt;&lt;br /&gt;The host said, "that was three years ago, when I went hunting with my wife."&lt;br /&gt;&lt;br /&gt;"What's he stuffed with," asked the visiting hunter. "My wife."&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/DailyJokes-ACleanJokeEveryday?a=RT1LsKVBV3Y:0LcrJjJq2X4:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DailyJokes-ACleanJokeEveryday?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href....
与妻子打猎幽默一位猎人拜访了另一位猎人,并被安排参观了他的家。兽穴里有一只狮子标本。br/br/来访的猎人问:“你什么时候把它包起来的?”br/br/主人说,“那是三年前,我和妻子一起去打猎的时候。”br/br/来访的猎人问:“它标本是什么?”。“我的妻子。”div class=“feedflare” a href=”http://feeds.feedburner.com/~ff/DailyRokeDaily?a=RT1LSKVV3Y:0LCRJJQ2X4:yIl2AUoC8zA“img src=”http://feeds.feedburner.com/~ff/dailyRokeDaily?d=yIl2AUoC8zA“border=“0”/img/a href。。。。

关键是,a href在尝试查看我发现的解决方案中正确的XML时没有
。我查看了我的源URL的页面源代码,我看到最后的字符显示如下:

    <title>Hunting with a wife #Joke #Humor</title><description>A hunter visited another hunter and was given a tour of his home. In the den was a stuffed lion.&lt;br /&gt;&lt;br /&gt;The visiting hunter asked, "when did you bag him?"&lt;br /&gt;&lt;br /&gt;The host said, "that was three years ago, when I went hunting with my wife."&lt;br /&gt;&lt;br /&gt;"What's he stuffed with," asked the visiting hunter. "My wife."&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/DailyJokes-ACleanJokeEveryday?a=RT1LsKVBV3Y:0LcrJjJq2X4:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DailyJokes-ACleanJokeEveryday?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href....
与妻子打猎幽默一位猎人拜访了另一位猎人,并被安排参观了他的家。兽穴里有一只狮子标本。br/br/来访的猎人问:“你什么时候把它包起来的?”br/br/主人说,“那是三年前,我和妻子一起去打猎的时候。”br/br/来访的猎人问:“它标本是什么?”。“我的妻子。”div class=“feedflare” a href=”http://feeds.feedburner.com/~ff/DailyRokeDaily?a=RT1LSKVV3Y:0LCRJJQ2X4:yIl2AUoC8zA“img src=”http://feeds.feedburner.com/~ff/dailyRokeDaily?d=yIl2AUoC8zA“border=“0”/img/a href。。。。
关键是,a href没有