private function generateMeta(bbMetaData $meta)
    {
        if (0 === $meta->count() || 'title' === $meta->getName()) {
            return '';
        }

        $result = '<meta ';
        foreach ($meta as $attribute => $value) {
            if (false !== strpos($meta->getName(), 'keyword') && 'content' === $attribute) {
                $keywords = explode(',', $value);
                foreach ($this->getKeywordObjects($keywords) as $object) {
                    $value = trim(str_replace($object->getUid(), $object->getKeyWord(), $value), ',');
                }
            }

            if ('content' === $attribute && empty($value)) {
                $result = '';
                break;
            }

            $result .= $attribute . '="' . html_entity_decode($value, ENT_COMPAT, 'UTF-8') . '" ';
        }

        return empty($result) ? $result : $result.'/>'.PHP_EOL;
    }
private function generateMeta(bbMetaData $meta)
    {
        if (0 === $meta->count() || 'title' === $meta->getName()) {
            return '';
        }

        $result = '<meta ';
        foreach ($meta as $attribute => $value) {
            if (false !== strpos($meta->getName(), 'keyword') && 'content' === $attribute) {
                $keywords = explode(',', $value);
                foreach ($this->getKeywordObjects($keywords) as $object) {
                    $value = trim(str_replace($object->getUid(), $object->getKeyWord(), $value), ',');
                }
            }

            if ('content' === $attribute && empty($value)) {
                $result = '';
                break;
            }

            $result .= $attribute . '="' . html_entity_decode($value, ENT_COMPAT, 'UTF-8') . '" ';
        }

        return empty($result) ? $result : $result.'/>'.PHP_EOL;
    }
private function generateMeta ( bbMetaData $ meta ) { if ( 0 === $ meta -> count ( ) || 'title' === $ meta -> getName ( ) ) { return '' ; } $ result = '<meta ' ; foreach ( $ meta as $ attribute => $ value ) { if ( false !== strpos ( $ meta -> getName ( ) , 'keyword' ) && 'content' === $ attribute ) { $ keywords = explode ( ',' , $ value ) ; foreach ( $ this -> getKeywordObjects ( $ keywords ) as $ object ) { $ value = trim ( str_replace ( $ object -> getUid ( ) , $ object -> getKeyWord ( ) , $ value ) , ',' ) ; } } if ( 'content' === $ attribute && empty ( $ value ) ) { $ result = '' ; break ; } $ result .= $ attribute . '="' . html_entity_decode ( $ value , ENT_COMPAT , 'UTF-8' ) . '" ' ; } return empty ( $ result ) ? $ result : $ result . '/>' . PHP_EOL ; }
Generates HTML tag according to the metadata.

@param  bbMetaData $meta

@return string
Generates HTML tag according to the metadata .