I am trying to remove JavaScript from the HTML.
I can\'t get the regular expression to work with PHP; it\'s giving me an null array. Why?
function clean_jscode($script_str) { $script_str = htmlspecialchars_decode($script_str); $search_arr = array('', $split_arr[$key]); $remove_jscode_arr[] = ($key == 0) ? $newarr[0] : $newarr[1]; } return implode('', $remove_jscode_arr); }