/** * Gets the user's query term and cleans it so that it can be used in * templates f.e. * * @return string The cleaned user query. */ public function getCleanUserQuery() { $userQuery = $this->getRawUserQuery(); if (!is_null($userQuery)) { $userQuery = Query::cleanKeywords($userQuery); } // escape triple hashes as they are used in the template engine // TODO remove after switching to fluid templates $userQuery = Template::escapeMarkers($userQuery); return $userQuery; }