我的特殊字符在wordpress中显示为&#8217 [英] My special characters display as &#8217 in wordpress

查看:91
本文介绍了我的特殊字符在wordpress中显示为&#8217的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何使我的特殊字符在wordpress上正确显示:

How do i make my special character display properly on wordpress:

  My ' are being converted to ’

所有特殊字符都在发生这种情况.是否有要修复的功能或插件?

This is happening for all special characters. Is there a function or plugin to fix?

推荐答案

您可以使用 htmlspecialchars_decode() .

You can use htmlspecialchars_decode().

echo htmlspecialchars_decode($yourString);

根据上述链接, htmlspecialchars_decode()函数将一些预定义的HTML实体转换为字符.

According to above mention link the htmlspecialchars_decode() function converts some predefined HTML entities to characters.

这篇关于我的特殊字符在wordpress中显示为&#8217的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆