Home >Backend Development >PHP Tutorial >Remove all js, html, css code in php_PHP tutorial

Remove all js, html, css code in php_PHP tutorial

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-07-21 15:33:501056browse

Copy code The code is as follows:

$search = array ("' ]*?>.*?'si", // Remove javascript
"']*?>.*?'si", // Remove css
"'<[/!]*?[^<>]*?>'si", // Remove HTML tags
"'