【发布时间】:2012-09-02 22:30:46
【问题描述】:
我试图在我的 rss 中的描述标签旁边或之前显示一个图像,我已经在我的本地主机上尝试过它的工作方式如下:
<description><![CDATA[<img src="<?php echo $img; ?>">test test test test testtest test test test]]></description>
但在我的网站上却有些不同,如下所示:
echo '
<item>
<title>'.$article[title].'</title>
<description><![CDATA[<img src="$img_path">
'.$shortdesc.'
]]></description>
</item>';
它不是这样工作的,这首颂歌有什么问题?它返回空白iamge,这是来自浏览器的页面源:
<description><![CDATA[<img src="$img_path">test test test</description>
【问题讨论】: