(.*?)#','',html_entity_decode($text)); } // remove malicious code appended after string variable function unbundle($text) { return trim(preg_split('/[;|\?=]/',preg_replace(["#['\"](.*?)['\"];?.+$#","#[()\[\]/\\&`]#"],'',html_entity_decode($text)))[0]); } ?>