htmlspecialchars的有关问题

WBOY
Release: 2016-06-13 13:15:17
Original
769 people have browsed it

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

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

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template