[BUGFIX] Do not call bidir_htmlspecialchars as static function
[Packages/TYPO3.CMS.git] / typo3 / sysext / indexed_search / Classes / Controller / SearchController.php
index 27d6e0e..a8d1216 100644 (file)
@@ -597,8 +597,9 @@ class SearchController extends \TYPO3\CMS\Extbase\Mvc\Controller\ActionControlle
         * @return string Processed content
         */
        protected function markupSWpartsOfString($str) {
+               $htmlParser = GeneralUtility::makeInstance('TYPO3\\CMS\\Core\\Html\\HtmlParser');
                // Init:
-               $str = str_replace(' ', ' ', \TYPO3\CMS\Core\Html\HtmlParser::bidir_htmlspecialchars($str, -1));
+               $str = str_replace(' ', ' ', $htmlParser->bidir_htmlspecialchars($str, -1));
                $str = preg_replace('/\\s\\s+/', ' ', $str);
                $swForReg = array();
                // Prepare search words for regex: