验证器w3 RSS无效-RSS未使用PHP显示提要


Validator w3 RSS Invalid - RSS not showing the feed by using PHP

我是用PHP创建RSS的新手。我搜索了一些参考资料,我的提要似乎在validator.w3.org上出现了错误或无效的RSS。我也读过这个链接。但这一点帮助都没有。

我看到它在line 10 columns 322中包含错误。这和我在谷歌浏览器中看到的一样(但在mozilla中不起作用)。错误似乎是<br><br>。而且,我想知道RSS是否不允许任何形式的提要而不是纯文本。

此外,我使用NicEditor将文章内容发布并保存在数据库和提要表中。

以下是提要测试链接:测试_站点

以下是我在PHP扩展中创建RSS的代码:

<?php
include_once('pdo_con.php');
?>
<?php
$qryArtl = $mydb->prepare('SELECT * FROM feeder ORDER BY id DESC');
$qryArtl->execute();
    //start creating RSS
    header("Content-type: text/xml");
    echo "<?xml version='1.0' encoding='UTF-8'?>
    <rss version='2.0'>
    <channel>
    <title>Rama Academy: Solusi Belajar Efektif dengan Zenius 
Education</title>
    <link>http://www.blabla.com/</link>
    <description>Cara Belajar Santai, Efektif dan Efisien dengan Zenius 
Learning Revolution | Ramaacademy.com - (C) 2015</description>
    <language>en-us</language>";
$varA = $qryArtl->fetchAll();
foreach ($varA as $displvarA) {
    $contID=$displvarA['id'];
    $linkz=$displvarA['link'];
    $deskripsi_rss=$displvarA['description'];
    $titlejudul=$displvarA['title'];
    //grab the content
    $title=$displvarA['title'];
    $link=$displvarA['link'];
    $description=$displvarA['description'];
    echo "<item>
    <title>$titlejudul</title>
    <link>$linkz</link>
    <description>$deskripsi_rss</description>
    </item>";
    }
    echo "</channel></rss>";
?>

以下文本只是我从谷歌上获取的一个示例:

You've moved your site to a new domain, and you want to make the 
transition as seamless as possible.
    People access your site through several different URLs. If, for
 example, your home page can be reached in multiple ways - for instance, 
http://example.com/home, http://home.example.com, or 
http://www.example.com - it's a good idea to pick one of those URLs as 
your preferred (canonical) destination, and use 301 redirects to send 
traffic from the other URLs to your preferred URL. You can also use 
Webmaster Tools to set your preferred domain.

我的问题是:HTML格式是否导致错误?如果是,我如何使其成为经过验证的RSS?如果有的话,请给我推荐一个更好的。谢谢你的帮助!

如果要将HTML添加到提要中,则应使用CDATA使其工作并有效。

以下是更多信息:https://amittechlab.wordpress.com/2011/03/02/use-cdata-in-rss-feed-to-add-html-and-links/