source/Application/Controller/ArticleListController.php
protected function _prepareMetaDescription($meta, $length = 1024, $descriptionTag = false)
    {
        $description = '';
        // appending parent title
        if ($activeCategory = $this->getActiveCategory()) {
            if (($parentCategory = $activeCategory->getParentCategory())) {
                $description .= " {$parentCategory->oxcategories__oxtitle->value} -";
            }

            // adding category title
            $description .= " {$activeCategory->oxcategories__oxtitle->value}.";
        }

        // and final component ..
        //changed for #2776
        if (($suffix = \OxidEsales\Eshop\Core\Registry::getConfig()->getActiveShop()->oxshops__oxtitleprefix->value)) {
            $description .= " {$suffix}";
        }

        // making safe for output
        $description = getStr()->html_entity_decode($description);
        $description = getStr()->strip_tags($description);
        $description = getStr()->cleanStr($description);
        $description = getStr()->htmlspecialchars($description);

        return trim($description);
    }
protected function _prepareMetaDescription($meta, $length = 1024, $descriptionTag = false)
    {
        $description = '';
        // appending parent title
        if ($activeCategory = $this->getActiveCategory()) {
            if (($parentCategory = $activeCategory->getParentCategory())) {
                $description .= " {$parentCategory->oxcategories__oxtitle->value} -";
            }

            // adding category title
            $description .= " {$activeCategory->oxcategories__oxtitle->value}.";
        }

        // and final component ..
        //changed for #2776
        if (($suffix = \OxidEsales\Eshop\Core\Registry::getConfig()->getActiveShop()->oxshops__oxtitleprefix->value)) {
            $description .= " {$suffix}";
        }

        // making safe for output
        $description = getStr()->html_entity_decode($description);
        $description = getStr()->strip_tags($description);
        $description = getStr()->cleanStr($description);
        $description = getStr()->htmlspecialchars($description);

        return trim($description);
    }
protected function _prepareMetaDescription ( $ meta , $ length = 1024 , $ descriptionTag = false ) { $ description = '' ; // appending parent title if ( $ activeCategory = $ this -> getActiveCategory ( ) ) { if ( ( $ parentCategory = $ activeCategory -> getParentCategory ( ) ) ) { $ description .= " {$parentCategory->oxcategories__oxtitle->value} -" ; } // adding category title $ description .= " {$activeCategory->oxcategories__oxtitle->value}." ; } // and final component .. //changed for #2776 if ( ( $ suffix = \ OxidEsales \ Eshop \ Core \ Registry :: getConfig ( ) -> getActiveShop ( ) -> oxshops__oxtitleprefix -> value ) ) { $ description .= " {$suffix}" ; } // making safe for output $ description = getStr ( ) -> html_entity_decode ( $ description ) ; $ description = getStr ( ) -> strip_tags ( $ description ) ; $ description = getStr ( ) -> cleanStr ( $ description ) ; $ description = getStr ( ) -> htmlspecialchars ( $ description ) ; return trim ( $ description ) ; }
Returns current view meta description data.

@param string $meta           Category path.
@param int    $length         Max length of result, -1 for no truncation.
@param bool   $descriptionTag If true - performs additional duplicate cleaning.

@return  string
Returns current view meta description data .