original_string: 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;
      }
code: 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;
      }
code_tokens: 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 ; }
docstring: Rebuild HTML tag from an excerpt array
  
  @param array $excerpt
  @return string
docstring_tokens: Rebuild HTML tag from an excerpt array