Set meta tag.

@param string $name Meta tag name.
@param string $content Meta tag content.
962405
public static function metaTag($name, $content)
    {
        if (self::$_page) {
            self::$_page->metaTag($name, $content);
        }
    }
267467
public static function meta($name = 'name', $value, $content, array $attributes = [])
    {
        $attributes = array_merge([
            $name => $value,
            'content' => $content
        ], $attributes);

        return self::tag('meta', $attributes);
    }
1338634
public function setContent($content)
	{
		if ($content instanceof \ArrayObject || is_array($content))
		{
			$this->headers['Content-Type'] = array('application/json');

			$content = json_encode($content);
		}

		$this->content = $content;
	}
501571
static public function add($tag,$name) {
        if(!isset(self::$tags[$tag])){
            self::$tags[$tag]   =   array();
        }
        if(is_array($name)){
            self::$tags[$tag]   =   array_merge(self::$tags[$tag],$name);
        }else{
            self::$tags[$tag][] =   $name;
        }
    }
929032
public function addAttachment($name, $MIMEType, $content)
    {
        if (isset($this->attachments[$name])) {
            throw new Exception("The attachment identified by '{$name}' has already been set.");
        } else {
            $this->attachments[$name] = array("type" => $MIMEType, "content" => $content);
            $this->hasAttachments = true;
        }
    }
850796
public function setName($name)
    {
        $this->name = $name;
        if ($this->node) {
            $this->node->name = $name;
        }
    }
1341829
public static function create($name, $content = '', $singleTag = false): Element
    {
        return new Element($name, $content, $singleTag);
    }
1293081
public function setContent($content)
    {
        $contentAttribute = $this->contentAttribute;
        if ($contentAttribute === false) {
            return;
        }
        if (is_array($contentAttribute)) {
            foreach ($contentAttribute as $key => $value) {
                $this->$value = $content[$key];
            }
            return;
        }
        $this->$contentAttribute = $content;
    }
317393
public function setAttribute(string $name, string $value) : Tag
    {
        $this->attributes[strtolower($name)] = $value;

        return $this;
    }
90041
public function slot($name, $content = null)
    {
        if (count(func_get_args()) === 2) {
            $this->slots[$this->currentComponent()][$name] = $content;
        } else {
            if (ob_start()) {
                $this->slots[$this->currentComponent()][$name] = '';

                $this->slotStack[$this->currentComponent()][] = $name;
            }
        }
    }
205188
public function metaName($name = null, $content = null) {
		if (empty($name) || empty($content)) {
			return '';
		}

		$content = (array)$content;
		$return = '<meta name="' . $name . '" content="' . implode(', ', $content) . '" />';
		return $return;
	}
1224455
public function addOne($name, $content)
    {
        $meta = Meta::make($name, $content);

        if ($meta->isValid() && ! $this->isIgnored($name)) {
            $this->put($meta->key(), $meta);
        }

        return $this;
    }
1014611
public function contains($content, $name)
    {
        if ($this->exists($name)) {
            preg_match_all('/'.$this->getRegex().'/s', $content, $matches, PREG_SET_ORDER);

            if (empty($matches)) {
                return false;
            }

            foreach ($matches as $shortcode) {
                if ($name === $shortcode[2]) {
                    return true;
                }
            }
        }

        return false;
    }
1043383
public function setContent($content)
    {
        $this->contents = trim($content);

        $this->parsedContents = null;
        return $this;
    }
1372197
public function setContent(string $content): void {
		if ($this->compiled) {
			throw new ViewException("Attempt to alter view after compilation.", ViewException::AFTER_COMPILE_ALTERATION);
		}
		
		// like the header above, $content might be a file or the
		// actual content
		
		$this->content = is_file($content)
			? file_get_contents($content)
			: $content;
	}
252612
public function setContent($content)
    {
        if (empty($content) || !is_string($content)) {
            throw new BuildException('Content must be a non-empty string');
        }

        $this->_content = $content;
    }
448951
public function set($name, $content, $metaType="name", $overwrite = true)
    {
        if($content) {
            // strip html tags and encode html entities
            $content = htmlspecialchars(strip_tags($content));
            if($overwrite) {
                // limit length on description tag
                if ($name == 'description' || $name == "og:description") {
                    $content = str_limit($content, 300);
                }
                // allowed duplicates meta tags
                if (in_array($name, $this->allowedDuplicateMeta)) {
                    $this->metaList[$name][] = [
                      'type' => $metaType,
                      'content' => $content
                    ];
                } else {
                    $this->metaList[$name] = [
                      'type' => $metaType,
                      'content' => $content
                    ];
                }
            }
        }

        return $this;
    }