Php 提要标题中的撇号会生成错误
当我尝试生成提要时,这些提要在浏览器中包含标题Php 提要标题中的撇号会生成错误,php,special-characters,feed,Php,Special Characters,Feed,当我尝试生成提要时,这些提要在浏览器中包含标题,,这被解释为,浏览器在字符,处生成一个错误,MySql包含,,而不是,,我尝试用php替换,但不起作用 $domanda = mysqli_query($conn, "SELECT * FROM wp_posts WHERE post_status = 'publish' and post_type = 'post' AND DATE(post_modified) > DATE(post_date) ORDER BY post_modifie
,
,这被解释为,
浏览器在字符,
处生成一个错误,MySql包含,
,而不是,
,我尝试用php替换,但不起作用
$domanda = mysqli_query($conn, "SELECT * FROM wp_posts WHERE post_status = 'publish' and post_type = 'post' AND DATE(post_modified) > DATE(post_date) ORDER BY post_modified DESC LIMIT 50");
$numrss = mysqli_num_rows($domanda);
while ($info = $domanda->fetch_array(MYSQLI_ASSOC))
{
$primodato=$info['post_title'];
echo "<item>
<title><![CDATA[".str_replace("'"," ",$primodato)."]]></title>";
$domanda=mysqli_query($conn,“从wp_posts中选择*,其中post_status='publish'和post_type='post'和DATE(post_modified)>DATE(post_DATE)顺序按post_modified DESC LIMIT 50”);
$numrss=mysqli_num_行($domanda);
而($info=$domanda->fetch_数组(MYSQLI_ASSOC))
{
$primodato=$info['post_title'];
回声“
让你的问题变得简单。它很复杂。。试试”;
我试过不工作=(@user1038606我用引语更新了谢谢,但什么都没有=(
<?php header("Content-type: text/xml; charset=utf-8");