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

验证程序w3 RSS无效-RSS未使用PHP显示提要,php,xml,rss,Php,Xml,Rss,我是用PHP创建RSS的新手。我已经搜索了一些参考资料,似乎我的提要得到了错误或无效的RSS。 我也读过这篇文章。但这根本没用 我看到它在第10行第322列中包含错误。这与我在Google Chrome中看到的相同(但在mozilla中不起作用)。 错误似乎是。而且,我想知道RSS是否不允许任何模式的提要而不是纯文本 此外,我使用NicEditor将文章内容发布并保存在数据库和提要表中 以下是提要测试链接: 以下是我在PHP扩展中创建RSS的代码: <?php include_once(

我是用PHP创建RSS的新手。我已经搜索了一些参考资料,似乎我的提要得到了错误或无效的RSS。 我也读过这篇文章。但这根本没用

我看到它在第10行第322列中包含错误。这与我在Google Chrome中看到的相同(但在mozilla中不起作用)。 错误似乎是


。而且,我想知道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>";

?>
我的问题是: HTML格式是否导致错误?如果是,我怎样才能使它成为有效的RSS?如果有更好的,请推荐给我。
谢谢你的帮助

如果要向提要中添加HTML,则应使用CDATA使其正常工作并有效


这里有更多的信息:

好的,让我先试试这很好,伙计^ ^非常感谢:*简单的回答,巨大的结果。再次感谢:D(好的,需要5分钟来选择已解决的:pNo问题,很高兴我能帮忙:)
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.