Same as append(), but won't generate exception for non-existing
$tag.

@param string|array|Model $tag
@param string             $value

@return $this
977531
public function tryAppendHTML($tag, $value)
    {
        return $this->_setOrAppend($tag, $value, false, true, false);
    }
1212063
public function setMethod($value): self
    {
        if (!in_array($value, self::methods(), true)) {
            throw new DomainException(sprintf(self::UNEXPECTED_METHOD, implode(', ', self::methods())));
        }

        return $this->setAttribute('method', $value);
    }
635616
public function setTags($tags, $value=null) 
    {
        if (is_array($tags))
            $this->tags = $tags;
        else if (is_string($tags))
            $this->tags[$tags] = $value;
        return $this;
    }
160137
public function addTag($tag)
    {
        $tags = $this->getTags();
        array_push($tags, $tag);
        $this->setTags($tags);
    }
515396
public function append($field, $value)
    {
        $this->resolver->resolveForTyping($field)->sendKeys($value);

        return $this;
    }
1002039
public function appendAttribute($attr, $value)
    {
        $this->setAttribute($attr, trim($this->getAttribute($attr) . $value));

        return $this;
    }
1167910
protected function createTag(string $value): Tag
    {
        /** @var TagModel $model */
        $model = $this->framework->createInstance(TagModel::class);
        $model->tstamp = \time();
        $model->name = $value;
        $model->source = $this->alias;
        $model->save();

        return ModelCollection::createTagFromModel($model);
    }
437144
public function add($var, $value)
    {
        if ($this->has($var)) {
            if (is_array($this->container[$var])) {
                $this->container[$var][] = $value;
            } else {
                throw new ModelException(sprintf("Field '%s' exists and is not an array.", $var));
            }
        } else {
            $this->container[$var] = [$value];
        }
        $this->touch();

        return $this;
    }
531049
public function create($tag = 'div', $value = null, $attributes = [])
    {
        if (is_array($value)) {
            $attributes = $value;
            $value      = null;
        }

        $content = '<'.$tag.$this->attributes($attributes).'>';

        if (! is_null($value)) {
            $content .= $this->entities($value).'</'.$tag.'>';
        }

        return $this->raw($content);
    }
627380
public function concat($value, $preAppend = false)
    {
        $transformer = new Concat($this->value, $value);
        $transformer->setPreAppend($preAppend);
        $this->value = $transformer->execute();
        return $this;
    }
1194981
public function addTag($tag, $value, array $options = [])
    {
        $this->config("tags.twitter.$tag", $options ? [$value, $options] : $value);
        return $this;
    }
905253
public function setTags($value)
    {
        if (!is_array($value)) {
            $value = [$value];
        }

        $this->values['tags'] = implode(',', $value);

        return $this;
    }
494433
def add_tag(self, tag, value):
        
        index = bisect_left(self.tags, (tag, value))
        contains = False
        if index < len(self.tags):
            contains = self.tags[index] == (tag, value)
        if not contains:
            self.tags.insert(index, (tag, value))
1054531
public function attachTag(Tag $tag)
    {
        if (!$this->hasTag($tag)) {
            $this->_tags[] = $tag;
        }

        return $this;
    }
1266742
public function printTag( $tag, $value, array $attributes = [] )
	{
		$attributes = $this->buildAttributesFor( $tag, $attributes );

		printf( '<%s>%s</%s>',
			rtrim( sprintf( '%s %s', $tag, $attributes )),
			$value,
			$tag
		);
	}
561857
private String appendXmlEndingTag(String value) {
        StringBuilder sb = new StringBuilder();
        sb.append("</").append(value).append(">");

        return sb.toString();
    }
405355
public function append($selector, $value)
    {
        parent::append($selector, $value);

        // if document saved - save through update
        if ($this->getId()) {
            $this->operator->set($selector, $this->get($selector));
        }

        return $this;
    }