Erzeugt HTML Box for Hover über HTML-Elementen.
@access		public
@static
@param		string		$html		HTML of linked Element
@param		string		$text		Text within HelpHover
@param		string		$class		CSS Class of HelpHover
11949
public static function HelpHover( $html, $text, $class = 'helptext' )
	{
		$id	= uniqid( "hhItem" );
		$code	= "<span class=\"hover\" id=\"".$id."\">".$html."</span><div class=\"".$class."\" id=\"".$id."Help\">".$text."</div>";
		return $code;
	}
984753
public function addElementsClass($class) {
		foreach ($this->getElements() as $element) {
			if ($element instanceof Tag) {
				$element->addClass($class);
			}
		}
		
		return $this;
	}
1233042
public function Highlight($class = 'highlight')
    {
        $owner = $this->owner;
        $new = DBHTMLText::create();
        $new->name = $owner->name;
        $owner->value = $owner->forTemplate();
        $new->value = preg_replace('/\[([^\]]*)\]/', '<span class="' . $class . '">$1</span>', $owner->value);
        return $new;
    }
1011456
public function linkAttribsToHTMLString($link_attr, $body = '', $classes = '', $id = '', $styles = '')
    {
        $link_text = null;
        if (strlen($link_attr->title)) {
            $link_text = $link_attr->title;
        } elseif (strlen($body)) {
            $link_text = $body;
        } else {
            $link_text = $link_attr->href;
        }
        return Html::link(
            $link_attr->href,
            $link_text,
            array(
                'title'  => $link_attr->title,
                'target' => $link_attr->target,
                'class'  => $classes,
                'id'     => $id,
                'style'  => $styles
            )
        );
    }
598273
public function button($text, $url, $class = 'default', $parameters = array())
    {
        $this->message['buttons'][] = array(
            'text' => $this->container->translate($text, $parameters),
            'url' => $url,
            'class' => $class,
        );
        return $this;
    }
1118916
public static function linkify($text)
    {
        $text = preg_replace('/&apos;/', '&#39;', $text); // IE does not handle &apos; entity!
        $section_html_pattern = '%# Rev:20100913_0900 github.com/jmrware/LinkifyURL
            # Section text into HTML <A> tags  and everything else.
              (                             # $1: Everything not HTML <A> tag.
                [^<]+(?:(?!<a\b)<[^<]*)*     # non A tag stuff starting with non-"<".
              |      (?:(?!<a\b)<[^<]*)+     # non A tag stuff starting with "<".
             )                              # End $1.
            | (                             # $2: HTML <A...>...</A> tag.
                <a\b[^>]*>                   # <A...> opening tag.
                [^<]*(?:(?!</a\b)<[^<]*)*    # A tag contents.
                </a\s*>                      # </A> closing tag.
             )                              # End $2:
            %ix';

        return preg_replace_callback($section_html_pattern, array(__CLASS__, 'linkifyCallback'), $text);
    }
1057011
protected function handleHTML($e) {
            ?>

            <div class="text-center">
                <div class="alo-err alert alert-danger">
                    <div>
                        <span class="alo-bold">Uncaught <?= get_class($e) ?>: </span>
                        <span>[<?= $e->getCode() ?>] <?= $e->getMessage() ?></span>
                    </div>
                    <div>
                        <span class="alo-bold">Raised in </span>
                        <span class="alo-uline"><?= $e->getFile() ?>
                            <span> @ line </span>
                            <span class="alo-uline"><?= $e->getLine() ?>
                    </div>
                    <?php $this->echoPreviousExceptions($e->getPrevious()) ?>
                    <div>
                        <span class="alo-bold">Backtrace:</span>
                        <?= $this->getTrace($e->getTrace(), 'e') ?>
                    </div>
                </div>
            </div>
            <?php
        }
656115
final public function importHTML($text_html)
    {
        $content = $this->importer->import($text_html);

        if(!!is_null($content))
        {
            $this->logger->logError('E001', array($text_html));
        }
        else if(!$content)
        {
            $this->logger->logWarn('W001', array($text_html));
        }
        else
        {
            $this->html_content = $content;
        }

        return !!$this->domImport();
    }
329552
public function setText($text, $html = false)
    {
        $this->value = $text;
        $this->html = $html;
        $this->ajaxvalue = "";
    }
754326
private function renderElement($page, $title, $class = '')
    {
        $href = sprintf($this->htmlHref, $this->currentUri, $page);
        $href .= $this->getUrlParams();

        $element = sprintf($this->htmlAHref, $href, $title);
        return sprintf($this->htmlElement, $class, $element);
    }
1311812
protected function bootstrapHeading($size, $content, $description, $class) {

        $sizes = [1, 2, 3, 4, 5, 6];

        $attributes = [];

        $attributes["class"] = [$class];

        $element   = "h" . (true === in_array($size, $sizes) ? $size : 1);
        $secondary = null !== $description ? " <small>" . $description . "</small>" : "";
        $innerHTML = (null !== $content ? $content : "") . $secondary;

        return static::coreHTMLElement($element, $innerHTML, $attributes);
    }
1215222
public function removeElementsClass($class) {
		foreach ($this->getElements() as $element) {
			if ($element instanceof Tag) {
				$element->removeClass($class);
			}
		}
		
		return $this;
	}
155339
public function HTML_QuickForm_textarea($elementName=null, $elementLabel=null, $attributes=null) {
        debugging('Use of class name as constructor is deprecated', DEBUG_DEVELOPER);
        self::__construct($elementName, $elementLabel, $attributes);
    }
575029
public function twitter($what, $text=null, $class=null) {
		if (is_null($text)) {
			$text = $what;
		}

		$attributes = $this->getHtmlAttributes(array('class'=>$class));

		if (substr($what,0,1)=='@') {
			$link = "https://www.twitter.com/" . ltrim($what, '@');
		} elseif (substr($what,0,1)=='#') {
			$parts = explode(' ', $what);
			if (count($parts)>1) {
				$link = "https://twitter.com/search?q=" . urlencode($what);
			} else {
				$link = "https://www.twitter.com/hashtag/" . ltrim($what, '#');
			}
		}

		return "<a href='$link'$attributes>$text</a>";
	}
872643
public function write($text, $color = '', $useclass = true)
    {
        $style    = $this->getStyle($this->getCurrentStyle());
        $htmlcode = '<span dir="' . I18N::direction() . '"';
        if ($useclass) {
            $htmlcode .= ' class="' . $style['name'] . '"';
        }
        if (!empty($color)) {
            // Check if Text Color is set and if it’s valid HTML color
            if (preg_match('/#?(..)(..)(..)/', $color)) {
                $htmlcode .= ' style="color:' . $color . ';"';
            }
        }

        $htmlcode .= '>' . $text . '</span>';
        $htmlcode = str_replace([
            "\n",
            '> ',
            ' <',
        ], [
            '<br>',
            '>&nbsp;',
            '&nbsp;<',
        ], $htmlcode);
        echo $htmlcode;
    }
728423
public function setHTML($html)
    {
        $node = $this->createDocumentFragment();
        $node->appendXML('<html xmlns="http://www.w3.org/1999/xhtml">'.$html.'</html>');
        $this->doc->appendChild($node);
    }
286854
public function html($html = null)
    {
        if ($html === null) {
            return $this->_html;
        }
        $this->_html = $html;

        return $this;
    }