如何使用javascript从RSS提要编辑图像URL

时间:2015-02-18 21:07:17

标签: javascript xml rss

我想更改图片属性的网址。下面是我的RSS提要文档。我只想用其他方法替换图像URL属性的路径。

  <?xml version="1.0" ?>

<channel>
    <title> Debug</title>
    <link>https://images/image</link>
    <description>This forum is focused on the  Test service. You can post questions, answers, bugs or ideas for improvement.</description>
    <language>en-US</language>
    <generator>ActiveForums  5.0</generator>
    <copyright>Copyright [year] by GLOBO Plc.</copyright>
    <lastBuildDate>Fri, 24 Oct 2014 03:44:18 GMT</lastBuildDate>

    <image><url>http://images/image1</url>
    <title>GO!AppZone GO!AppZone Debug</title>      <link>https://Community/Developer-Forum/aff/5/afv/topicsview</link></image>
    <item>
        <title>lalalala</title>
        <description>oioioioiooi &lt;img src=&#39;https://DesktopModules/ActiveForums/themes/_default/emoticons/tongue.gif&#39; align=&quot;absmiddle&quot; border=&quot;0&quot; class=&quot;afEmoticon&quot; /&gt;</description>
        <link>https://Community/Developer-Forum/aff/5/aft/12/afv/topic</link>
        <dc:creator>ant lia</dc:creator>
        <pubDate>Fri, 24 Oct 2014 03:44:18 GMT</pubDate>
        <guid>https://Community/Developer-Forum/aff/5/aft/12/afv/topic</guid>
        <slash:comments>1</slash:comments>
    </item>
</channel></rss>

有什么原因可以使用javascript或jQuery替换URL路径。

请帮忙解决此问题。感谢。

0 个答案:

没有答案