Shortcut to creating a FontAwesome item.

@param string $value

@return Html instance
162835
public function addicon($icon, $tag = 'i')
    {
        $icon = static::icon($icon, $tag);

        return $this->addElement($icon);
    }
581959
public function setCoreEditorCssSelectors($value)
    {
        $this->setFieldName('editor_css_selectors');
        $this->loadObject(true);
        $this->setFieldValue($value);

        return $this;
    }
506152
final public static function create($value)
    {
        $key = get_called_class() . $value;

        if (isset(self::$instances[$key])) {
            return self::$instances[$key];
        }

        $values = static::values();
        if (!in_array($value, $values)) {
            throw new \UnexpectedValueException("Value '$value' is not part of the enum " . get_called_class());
        }

        self::$instances[$key] = new static($value);
        return self::$instances[$key];
    }
842179
public static function makeFakeForm($value)
    {
        $form = new \Gems_Form();
        $form->removeDecorator('HtmlTag');

        $element = new \Zend_Form_Element_Text('gto_id_token');
        $element->class = 'token_copy';
        $element->setDecorators(array('ViewHelper', array('HtmlTag', 'Div')));

        $form->addElement($element);
        $form->isValid(array('gto_id_token' => \MUtil_Lazy::call('strtoupper', $value)));

        return $form;
    }
1008852
public function toHtmlInternal($value = null)
    {
        $strOutput = "<optgroup label=\"{$this->__label}\">\n";
        foreach ($this->__options as $option) {
            $strOutput .= $option->toHtmlInternal($value);
        }
        $strOutput .= "</optgroup>\n";

        return $strOutput;
    }
721088
public function compile($value = "")
	{
		$html = $this->compiledLabel;

		if (!empty($this->help)) {
			$html .= "<div class='help'>{$this->help}</div>";
		}

		$html .= "<div class=\"elements\">";

		$hasOptionValue = $this->hasOptionValue($this->options);

		foreach ($this->options as $k => $v) {

			$html .= "<div class=\"element\"><input type=\"{$this->type}\" {$this->compiledAttr} ";
			$html .= "name=\"" . $this->name;

			if ($this->type == "checkbox") {
				$html .= "[]";
			}

			$html .= "\" ";

			// handle options in an associative array differently than ones in a numeric array
			if ($hasOptionValue || $this->useNumericValue) {
				$html .= "value=\"{$k}\" ";
				if ($k === $value || (is_array($value) && in_array($k, $value))) {
					$html .= "checked=\"checked\"";
				}

			} else {
				$html .= "value=\"{$v}\" ";
				if ($v === $value || (is_array($value) && in_array($v, $value))) {
					$html .= "checked=\"checked\"";
				}
			}

			$html .= " /> <span>{$v}</span></div>";
		}

		$html .= "</div>";

		return $html;
	}
968837
public static function createSlug($value)
    {
        /*
         * Not a scalar value?
         * Nothing to do
         */
        if (!is_scalar($value)) {
            return false;
        }

        /*
         * It's an empty string?
         * Nothing to do
         */
        if ('' === $value) {
            return '';
        }

        $id = 'Latin-ASCII; NFD; [:Nonspacing Mark:] Remove; NFC; [:Punctuation:] Remove; Lower();';
        $transliterator = \Transliterator::create($id);

        $cleanValue = trim($value);
        $result = $transliterator->transliterate($cleanValue);

        return preg_replace('/[-\s]+/', '-', $result);
    }
1186297
private function decorateValue($value, $html = true) {
		if (is_string($value)) {
			if (trim($value) == '') {
				$decValue = '\'' . $value . '\'';
			} else {
				$decValue = htmlspecialchars($value);
			}
		} else if (is_bool($value)) {
			if ($value) $decValue = 'true';
			else $decValue = 'false';
			if ($html) {
				$decValue = '<strong>' . $decValue . '</strong>';
			}
		} else if (is_null($value)) {
			$decValue = 'null';
			if ($html){
				$decValue = '<strong><i>' . $decValue . '</i></strong>';
			}
		} else {
			$decValue = $value;
			if ($html) {
				$decValue = '<strong>' . $decValue . '</strong>';
			}
		}
		return $decValue;
	}
754043
protected function createItem($value){
		if(\is_object($value)===false){
			$value=new HtmlSemDoubleElement("","div","content",$value);
		}
		return new HtmlShapeItem("side-".$this->identifier."-".$this->count(), $value);
	}
485103
public function escapeHtml(string $value) : string
    {
        return htmlspecialchars($value, ENT_COMPAT, $this->encoding, false);
    }
362751
public function setValue(string $value = null) : Element
    {
        $this->value = $value;
        if (isset($this->model)) {
            $this->model->{$this->attributes['name']} = $value;
        }
        return $this;
    }
105188
public function setTextColor($value) {
    $value = strtoupper($value);
    if ($this->validateTextColor($value)) {
      $this->textColor = $value;
    }
    return $this;
  }
271963
public function span($value, $attributes = [])
    {
        $tag = new Tag('span', $attributes);
        $tag->setText($value);
        return $tag;
    }
1113004
public function render($value)
    {
        if ($this->shouldMinify($value)) {
            $replace = [
                '/<!--[^\[](.*?)[^\]]-->/s' => '',
                "/<\?php/"                  => '<?php ',
                "/\n([\S])/"                => ' $1',
                "/\r/"                      => '',
                "/\n/"                      => '',
                "/\t/"                      => ' ',
                '/ +/'                      => ' ',
            ];

            $value = preg_replace(array_keys($replace), array_values($replace), $value);
        } else {
            // Where skip minification tags are used let's remove them from markdown or blade.
            $value = preg_replace("/<!--[\s]+skip\.minification[\s]+-->/", '', $value);
        }

        return $value;
    }
502223
public static function make($value)
    {
        if (is_resource($value)) {
            $value = null;
        } elseif (Arr::accessible($value)) {
            $value = new ArraySerialization($value);
        } elseif ($value instanceof stdClass) {
            $value = new ObjectSerialization($value);
        } elseif ($value instanceof Container) {
            $value = new ContainerSerialization($value);
        } elseif ($value instanceof DateTime) {
            $value = new DateTimeSerialization($value);
        } elseif ($value instanceof Validator) {
            $value = new ValidatorSerialization($value);
        } elseif ($value instanceof Throwable) {
            $value = new ThrowableSerialization($value);
        } elseif ($value instanceof Closure) {
            $value = null;
        }

        return $value;
    }
87705
public static function create($value, $type = self::TYPE_PLAIN_TEXT): self
    {
        $text = new self();

        $text->text = $value;
        $text->type = $type;

        return $text;
    }
586866
protected function output($value)
    {
        if ($value instanceof Renderable) {
            $value = $value->render();
        }

        if ($value instanceof Htmlable) {
            $value = $value->toHtml();
        }

        if ($value instanceof Jsonable) {
            $value = $value->toJson();
        }

        if (!is_null($value) && !is_scalar($value)) {
            return sprintf('<pre>%s</pre>', var_export($value, true));
        }

        return $value;
    }