我的标签上有以下行。
<?php
echo "<meta property='og:title' content='".$metaTitle."'>";
echo "<meta property='og:type' content='".$metaType."'>";
echo "<meta property='og:url' content='".$metaURL."'>";
echo "<meta property='og:image' content='".$metaImage."'>";
echo "<meta property='og:site_name' content='Gellies World'>";
echo "<meta property='og:description' content='".$metaDescription."'>";
?>
当我查看源代码时,它会正确打印(尽管它总共打印在一行中)。
<meta property='og:title' content='Ka-Ching! Sound of the Casino slot machine~!'><meta property='og:type' content='article'><meta property='og:url' content='http://gelliesworld.com/library/read/31'><meta property='og:image' content='http://gelliesworld.com/users/library/poster/images_thumb.jpeg'><meta property='og:site_name' content='Gellies World'><meta property='og:description' content='A group of Japanese lawmakers are close to hitting the jackpot in their bid to legalise casinos, betting the revenue bonanza could challenge Macau for'>
然而,当我使用FB调试器调试url时,它说我有必须修复的错误:
还有一些警告
当我看到被删除的URL时,源代码看起来与我右键单击并查看源代码时的内容类似
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<meta content="text/html;charset=utf-8" http-equiv="Content-Type">
<meta content="utf-8" http-equiv="encoding">
<meta property="og:title" content="<div style=" border:1px solid>
</head>
<body>
<p>">
依旧.....
我正在使用CodeIgniter,并且有3个视图(header,the_content和footer)。任何人都可以指出似乎是什么问题吗?