]*?)>/isU", //Filter ]*?)>/isU", //Filter
Home > Article > Backend Development > html color code php filters dangerous html codes
#HTML posted by users, filter dangerous code
Copy code The code is as follows:
function uh($str)
{
$farr = array(
"/s+/", //Filter excess whitespace
"/<(/?)(scripti?framestylehtmlbodytitlelinkmeta?%)([^>]*?)>/isU", //Filter