HTML实体转换为PHP中的普通字符串 [英] HTML entities to normal strings in PHP
本文介绍了HTML实体转换为PHP中的普通字符串的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在PHP中有一个带有HTML实体的字符串.在html源代码中,我可以看到html实体,但是在输出中,我的字符串没有html实体.
I have a string with HTML entities in PHP. In html source i can see the html Entities but in the output my string is without html Entities.
喜欢:
HTML来源:
<a href="google.com" >Me You</a> ?<!-- output is Me YOU -->
如何在PHP中用(空格)替换
? (以及所有其他HTML实体?)
How can i replace
with (space) in PHP? (as well as all other HTML entities?)
我想要这个输出:
<a href="google.com" >Me You</a> ?<!-- output is Me YOU -->
推荐答案
查看全文