and other possibilities To introduce malicious content or code that maliciously changes the display layout, if you do not need to insert flash, etc., you can also add filtering"/<(/?)(script|i?frame|style|html|body|titl"/> and other possibilities To introduce malicious content or code that maliciously changes the display layout, if you do not need to insert flash, etc., you can also add filtering"/<(/?)(script|i?frame|style|html|body|titl">

Home >Backend Development >PHP Tutorial >hktm php filters dangerous html code

hktm php filters dangerous html code

WBOY
WBOYOriginal
2016-07-29 08:38:36943browse

The following is the program code:

Copy the code The code is as follows:


function uhtml($str)
{
$farr = array(
"/s+/", //Filter excess blanks
//Filter