Home >Backend Development >PHP Tutorial >PHP filters dangerous HTML code_PHP tutorial

PHP filters dangerous HTML code_PHP tutorial

WBOY
WBOYOriginal
2016-07-21 15:50:58825browse

The following is the program code:

Copy code The code is as follows:

function uht($str)
{
$farr = array(
"/s+/", //Filter excess white space
//Filter