且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

在原子供稿中显示图像

更新时间:2023-11-27 19:24:28

在尝试将图像作为附件包含时,我遇到了同样的问题,但是对我来说,最简单的方法似乎是将包含常规img标签的图像包含到html内容.

I had the same problem when trying to include images as enclosure, but it seemed that the easiest way for me was to include the image with the normal img tag to the html content.

(它也包装在CDATA中,这可能会影响Google Reader处理内容的方式.我一直都在尝试.)

(It's also wrapped in CDATA, which might affect the way Google Reader handles the content. I haven't tried without.)

以下示例适用于我,以使原子供稿图像在Google阅读器中可见:

The following example works for me to make atom feed images visible in Google Reader:

<content type="html">
  <![CDATA[
    <a href="http://test.lvh.me:3000/listings/341-test-pics?locale=en">
      <img alt="test_pic" src="http://test.lvh.me:3000/system/images/20/medium/test_pic.jpg?1343246102" />
    </a>
  ]]>
</content>