---
title: "PHP中进行html转义的函数"
author: "zdcshh"
date: "2012-04-02T12:52:43Z"
tags: []
categories: ["编程语言"]
slug: "php-html"
draft: false
lastmod: "2012-04-02T13:12:23Z"
id: 1473061
url: "https://taichi.iteye.com/blog/1473061"
---

PHP开发中进行HTML转义的函数：[htmlspecialchars()](http://www.w3school.com.cn/php/func_string_htmlspecialchars.asp)  /  [htmlspecialchars\_decode()](http://www.w3school.com.cn/php/func_string_htmlspecialchars_decode.asp)

 

String相关函数：[http://www.w3school.com.cn/php/php\_ref\_string.asp](http://www.w3school.com.cn/php/php_ref_string.asp)