Home  >  Article  >  Backend Development  >  htmlspecialchars的有关问题

htmlspecialchars的有关问题

WBOY
WBOYOriginal
2016-06-13 13:15:17744browse

htmlspecialchars的问题
在APMServ本地环境下htmlspecialchars能够把单引号变为'
而虚拟主机上单引号不变 这是什么原因
另外我看了下w3school对htmlspecialchars的解释 第二个参数有什么区别
ENT_COMPAT - 默认。仅编码双引号。
ENT_QUOTES - 编码双引号和单引号。

------解决方案--------------------
代码如何写的?

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn