Answers the HTML for the caption.

@return string
327237
public function getCaptionHTML()
    {
        if ($this->CaptionMode == self::CAPTION_TEXT && $this->Caption) {
            return $this->Caption;
        }
        
        if ($this->CaptionMode == self::CAPTION_DESC && $this->Description) {
            return sprintf('<p>%s</p>', $this->Description);
        }
    }
1238600
public function getDescription()
    {
        if ( empty( $this->paragraphId ) )
        {
            return '';
        }

        $model  = $this->getServiceLocator()
                       ->get( 'Grid\Paragraph\Model\Paragraph\Model' );
        $locale = $model->getLocale();
        $model->setLocale( $this->locale );
        $content = $model->find( $this->paragraphId );
        $model->setLocale( $locale );

        if ( empty( $content ) )
        {
            return $this->originalTitle;
        }
        else if ( ! empty( $content->title ) )
        {
            return $content->title;
        }
        else if ( ! empty( $content->name ) )
        {
            return $content->name;
        }
        else
        {
            return $this->originalTitle;
        }
    }
5641
public function getHTML()
    {
        $details = $this->getHTMLDetails();
        extract($details);

        $ret = null;
        foreach ($this['values'] as $val) {
            $id .= $val;
            $item = $onlyValue  = htmlentities($val, ENT_QUOTES, $this->characterEncoding);
            $value = " value='{$onlyValue}'";
            $checked = isset($this['checked']) && $val === $this['checked']
                ? " checked='checked'"
                : null;

            $ret .= <<<EOD
<{$wrapperElement}{$wrapperClass}>
    <input id='$id'{$type}{$class}{$name}{$value}{$autofocus}{$readonly}{$checked}{$title} />
    <label for='$id'>$item</label>
    {$messages}
</{$wrapperElement}>
EOD;
        }

        return <<<EOD
<{$wrapperElement}{$wrapperClass}>
<p class='cf-label'>{$label}</p>
{$ret}
<p class='cf-desc'>{$description}</p>
</{$wrapperElement}>
EOD;
    }
1326048
public function getHtmlColumnHeader(): string
  {
    $attributes = [];
    $classes    = [];

    // Add class indicating this column can be used for sorting.
    if ($this->sortable)
    {
      $classes[] = 'sort-1';

      // Add attributes indicating the sort order of this column and direction.
      if ($this->sortOrder!==null)
      {
        $attributes['data-sort-order-1'] = $this->sortOrder;

        $classes[] = ($this->sortDirection=='desc') ? 'sorted-1-desc' : 'sorted-1-asc';
      }
    }

    // Add class indicating this column can be used for sorting.
    if ($this->sortable2)
    {
      $classes[] = 'sort-2';

      // Add attributes indicating the sort order of this column and direction.
      if ($this->sortOrder2!==null)
      {
        $attributes['data-sort-order-2'] = $this->sortOrder2;

        $classes[] = ($this->sortDirection2=='desc') ? 'sorted-2-desc' : 'sorted-2-asc';
      }
    }

    $attributes['class']   = implode(' ', $classes);
    $attributes['colspan'] = 2;

    return Html::generateElement('th', $attributes, '<span>&nbsp;</span>'.Html::txt2Html($this->headerText), true);
  }
404427
public function getHtmlHeader(): string
  {
    $ret = Html::generateTag('tr', ['class' => [OverviewTable::$class, 'header']]);
    foreach ($this->slatJoints as $factory)
    {
      $ret .= $factory->getHtmlColumnHeader();
    }
    $ret .= '<th class="error"></th>';
    $ret .= '</tr>';

    if ($this->filter)
    {
      $ret .= Html::generateTag('tr', ['class' => [OverviewTable::$class, 'filter']]);
      foreach ($this->slatJoints as $factory)
      {
        $ret .= $factory->getHtmlColumnFilter();
      }
      $ret .= '<th class="error"></th>';
      $ret .= '</tr>';
    }

    return $ret;
  }
497288
public String getCaption() {
        return caption != null && caption.toLowerCase().startsWith("label:") ? StrUtil.getLabel(caption.substring(6))
                : caption;
    }
191743
public function getHtml()
	{
		$s = '';
		foreach ($this->children as $child) {
			if (is_object($child)) {
				$s .= $child->render();
			} else {
				$s .= $child;
			}
		}

		return $s;
	}
395896
public function getTitleView(): string
    {
        if ($this->help) {
            $help_box_id = 'column_' . $this->key . '_hint_box';
            if ($this->help_href) {
                $help_title = '<a href="' . $this->help_href . '"' . ($this->help_href_new_window ? ' target="_blank"' : '') . '>?</a>';
            } else {
                $help_title = '<span onmouseover="HintHelp.show(\'' . $help_box_id . '\', \'' . htmlspecialchars($this->help_text, ENT_QUOTES) . '\', event)" onmouseout="HintHelp.hide(\'' . $help_box_id . '\')">?</span>';
            }
            $help_html = '&nbsp;<sup style="cursor: pointer; position: relative;" id="' . $help_box_id . '">' . $help_title . '</sup>';
        } else {
            $help_html = '';
        }

        if ($this->sql_order_by) {
            if ($this->sql_order_by_direction) {
                $order_by_direction = '&nbsp;<small>' . ($this->sql_order_by_direction === 'asc' ? '▲' : '▼') . '</small>';
            } elseif (isset($this->sql_order_by_direction_default)) {
                $order_by_direction = '&nbsp;<small>' . ($this->sql_order_by_direction_default === 'asc' ? '▲' : '▼') . '</small>';
            }

            $order_by_url = Linker::makeUrl(array_merge($_GET, ['order_by' => $this->key . '-' . ($this->sql_order_by_direction === 'asc' ? 'desc' : 'asc')]));
        } else {
            $order_by_url = '';
        }

        return '<span style="font-weight:700">'
            . ($order_by_url ? '<a href="' . $order_by_url . '">' : '')
            . __($this->getTitle()) . ($order_by_url ? '</a>' : '')
            . ($order_by_direction ?? '')
            . '</span>'
            . $help_html;
    }
523783
public function imageToHtml()
    {
        if (empty($this->data['file.url'])) {
            return '';
        }

        $text = $this->data['text'] ?? '';

        if (!empty($text)) {
            $text = $this->parser->toHtml($text);
        }

        $url = $this->data['file.url'] ?? '';

        try {
            $size = getimagesize($url);
        } catch (Exception $e) {
            $size = [
                $this->config['image.width'] ?? 520,
                $this->config['image.height'] ?? 200,
            ];
        }

        return $this->view('image.image', [
            'url' => $url,
            'text' => $text,
            'width' => $size[0],
            'height' => $size[1],
        ]);
    }
277652
public function getHtml()
  {
    $html = "";

    $table_classes = $this->getTableClasses();

    if($this->table_responsive)
    {
      $html.= "<div class=\"table-responsive\">\n";
    }

    $id_tag = $this->getTagId();

    $html.= "<table {$id_tag} class=\"table {$table_classes}\">\n";

    // table header
    if( isset($this->header) )
    {
        $html.= "\t<thead>\n";
        $html.= $this->header->getHtml();
        $html.= $this->fillWithEmptyCells($this->header, $this->header->getTagRow() );
        $html.= "\t</thead>\n";
    }

    // table data
    if( isset($this->rows))
    {
      $html.= "\t<tbody>\n";
      foreach($this->rows as $row)
      {
        $html.= $row->getHtml();
        $html.= $this->fillWithEmptyCells($row, $row->getTagRow() );
      }
      $html.= "\t</tbody>\n";
    }

    $html.= "</table>\n";

    if($this->table_responsive)
    {
      $html.= "</div>\n";
    }

    return $html;
  }
46557
public function getTitles()
    {
        $titles = array();
        $levels = array(&$titles);

        foreach ($this->nodes as $node) {
            if ($node instanceof TitleNode) {
                $level = $node->getLevel();
                $text = (string)$node->getValue();
                $redirection = $node->getTarget();
                $value = $redirection ? array($text, $redirection) : $text;

                if (isset($levels[$level-1])) {
                    $parent = &$levels[$level-1];
                    $element = array($value, array());
                    $parent[] = $element;
                    $levels[$level] = &$parent[count($parent)-1][1];
                }
            }
        }

        return $titles;
    }
1261599
public function getHtml() {
	   if ($this->getPageTotal() < 2) {
	       return null;
       }
       return str_ireplace(array(
				'{total}',
				'{pageSize}',
				'{start}',
				'{end}',
				'{pageTotal}',
				'{previous}',
				'{next}', 
				'{list}',
				'{goto}',
		), array(
				$this->get('total'),
				$this->setPageSize(),
				$this->getStart(),
				$this->getEnd(),
				$this->pageTotal,
				$this->getPrevious(),
				$this->getNext(),
				$this->getPageList(),
				$this->getGoToPage(),
		), $this->get('template'));
	}
864467
protected function _toHtml()
    {
        if (!$this->getOptions()) {
            $cmsPages = $this->cmsPageCollection->addStoreFilter($this->getStoreFromContext());
            foreach ($cmsPages as $cmsPage) {
                /** @var \Magento\Cms\Model\Page $cmsPage */
                $this->addOption($cmsPage->getId(), $cmsPage->getTitle());
            }
        }

        return parent::_toHtml();
    }
860396
public function _toHtml()
    {
        $html = '';

        foreach ($this->getChildNames() as $childName) {
            if ($html === '') {
                $renderer = $this->getChildBlock($childName);
                $html = $renderer->render($this->getFilter());
            }
        }

        return $html;
    }
1044287
protected function getHtml()
    {
        array_walk($this->lines, 'trim');
        $html = trim(implode('', $this->lines));
        $this->lines = [];
        return $html;
    }
1341389
public function get_content_html() {
		return wc_get_template_html( $this->template_html, [
			'order'         => $this->object,
			'email_heading' => $this->get_heading(),
			'sent_to_admin' => false,
			'plain_text'    => false,
			'email'			=> $this,
		] );
	}
1034679
public function getIcon()
    {
        if (!$this->icon) {
            return "";
        }
        return Html::get()->image($this->icon, $this->translate($this->label));
    }