and no closing tag for this // But HTML_Safe considers xml tag as dangerous tag and removes content between these tags. // Since there is no closing tag for this it removes all content. Also if it finds opening tag with ? it searches for closing // tag with ? and removes all content between them. So replacing deleteTagsContent[array_search('xml', $htmlSafe->deleteTagsContent)]); array_push($htmlSafe->noClose, 'xml'); // End array_push($htmlSafe->whiteProtocols, 'cid'); return $htmlSafe->parse($string); } public static function allowedFileExtension($filename) { $parts = explode('.', $filename); if (php7_count($parts) > 1) { $extension = $parts[php7_count($parts)-1]; return (in_array(strtolower($extension), vglobal('upload_badext')) === false); } return false; } public static function emitJSON($object) { Zend_Json::$useBuiltinEncoderDecoder = true; echo Zend_Json::encode($object); } } ?>