public static function getHtmlFromExcerpt($excerpt)
    {
        $element = $excerpt['element'];
        $html = '<'.$element['name'];

        if (isset($element['attributes'])) {
            foreach ($element['attributes'] as $name => $value) {
                if ($value === null) {
                    continue;
                }
                $html .= ' '.$name.'="'.$value.'"';
            }
        }

        if (isset($element['text'])) {
            $html .= '>';
            $html .= $element['text'];
            $html .= '</'.$element['name'].'>';
        } else {
            $html .= ' />';
        }

        return $html;
    }
public static function getHtmlFromExcerpt($excerpt)
    {
        $element = $excerpt['element'];
        $html = '<'.$element['name'];

        if (isset($element['attributes'])) {
            foreach ($element['attributes'] as $name => $value) {
                if ($value === null) {
                    continue;
                }
                $html .= ' '.$name.'="'.$value.'"';
            }
        }

        if (isset($element['text'])) {
            $html .= '>';
            $html .= $element['text'];
            $html .= '</'.$element['name'].'>';
        } else {
            $html .= ' />';
        }

        return $html;
    }
public static function getHtmlFromExcerpt ( $ excerpt ) { $ element = $ excerpt [ 'element' ] ; $ html = '<' . $ element [ 'name' ] ; if ( isset ( $ element [ 'attributes' ] ) ) { foreach ( $ element [ 'attributes' ] as $ name => $ value ) { if ( $ value === null ) { continue ; } $ html .= ' ' . $ name . '="' . $ value . '"' ; } } if ( isset ( $ element [ 'text' ] ) ) { $ html .= '>' ; $ html .= $ element [ 'text' ] ; $ html .= '</' . $ element [ 'name' ] . '>' ; } else { $ html .= ' />' ; } return $ html ; }
Rebuild HTML tag from an excerpt array

@param array $excerpt
@return string
Rebuild HTML tag from an excerpt array