0

when I create a news that has an apostrophe in title (example here: http://www.gamempire.it/news/project-cars-in-arrivo-su-playstation-4-ed-xbox-one-ma-c-e-anche-una-brutta-notizia-131554), looking at the html source i can see an

'

When I share this news on Facebook, it display the code ', and this is not so good.

How can I fix this? Do I have to convert the string in something else with php?

Thanks

4

1 回答 1

1

您的源代码已经包含元标记,以便使用这种特殊的字符编码在 Facebook 上共享,但使用“amp;” 太多:

<meta property="og:title" content="Project CARS in arrivo su Playstation 4 ed Xbox One, ma c&amp;#039;è anche una brutta notizia - Gamempire">

& #39;
您必须卸下放大器;;)

所以,首先你必须检查你的脚本为什么以及在哪里转换'-Char。这是您使用的 CMS 吗?

于 2013-11-10T21:07:36.163 回答