Returns a meta tag with the given name and content.

@param  string $name The name of the meta tag
@param  string $content  The meta tag content
@return string           The constructed meta tag
186195
private function metaTag($name, $content)
    {
        $name = htmlspecialchars($name);
        $content = htmlspecialchars($content);
        if(substr($name, 0, 3) == 'og:' || substr($name, 0, 3) == 'fb:') {
          if($name == 'og:image') {
            return "<meta property=\"$name\" content=\"$content&auto=format%2Ccompress\"/>";
          }
          if(substr($name, 0, 8) == 'og:image') {
            return "<meta property=\"$name\" content=\"$content\"/>";
          }
          if(substr($name, 0, 6) == 'og:url') {
            return "<meta itemprop=\"url\" property=\"$name\" content=\"$content\"/>";
          }
          return "<meta property=\"$name\" content=\"$content\"/>";
        }
        else if(substr($name, 0, 11) == 'description') {
          return "<meta itemprop=\"description\" name=\"$name\" content=\"$content\"/>";
        }
        else if(substr($name, 0, 7) == 'section') {
          return "<meta itemprop=\"articleSection\" name=\"$name\" content=\"$content\"/>";
        }
        else if(substr($name, 0, 9) == 'image_src') {
          return "<meta itemprop=\"thumbnailUrl\" name=\"$name\" content=\"$content\"/>";
        }
        else if(substr($name, 0, 4) == 'rel:') {
          $name=ltrim($name,"rel:");
          return "<link rel=\"$name\" href=\"$content\"/>";
        }
        else
          return "<meta name=\"$name\" content=\"$content\"/>";
    }
1074583
public function tagNotpresent($tag, $content)
    {
        $name     = $tag['name'];
        $name     = $this->autoBuildVar($name);
        $parseStr = '<?php if(!isset(' . $name . ')): ?>' . $content . '<?php endif; ?>';

        return $parseStr;
    }
243849
protected function getMetaTag($property = null, $content = null)
    {
        return sprintf(
            "<meta property=\"%s\" content=\"%s\" />\n",
            Convert::raw2att($property),
            Convert::raw2att($content)
        );
    }
789142
public function tag($tag, $content, array $attributes = [])
    {
        return $this->htmlBuilder->tag($tag, $content, $attributes);
    }
164000
public function content($name = null)
    {
        if ($name && isset(self::$_content_for[$name]))
            return self::$_content_for[$name];
    }
611906
public static function createSub($name = '', $content = null)
	{
		$class = get_called_class();
		$element = new $class($name, $content);
		$element->sub = true;
		return $element;
	}
670966
public function uploadContents($name, $contents)
    {
        $result = $this->client->post('upload', [
            'json' => [
                'image' => base64_encode($contents),
                'type'  => 'base64',
            ]
        ]);
        if ($result->getStatusCode() === 200) {
            $meta = array_get(json_decode($result->getBody(), true), 'data', []);
            $meta['url'] = array_get($meta, 'link');
            $meta = preg_replace("/^http:/i", "https:", $meta);
            return $meta;
        } else {
            return false;
        }
    }
1091520
public function loadOrCreateTag($name)
    {
        $tag = $this->loadTag($name);
        if (null === $tag) {
            $tag = $this->createTag($name);
        }

        return $tag;
    }
1052761
protected function _get_permalink( $content ) {
		preg_match( '/<meta +?property=["\']og:url["\'][^\/>]*? content=["\']([^"\']+?)["\'].*?\/?>/si', $content, $reg );
		if ( ! empty( $reg[1] ) ) {
			return $reg[1];
		}

		return $this->url;
	}
345205
public function getTag($name)
		{
			$comment = $this->ref->getDocComment();
			preg_match('/@' .$name. '\s+(.+)/', $comment, $matches);
			return $matches ? $matches[1] : null;
		}
972816
public static function th(
        string $content = null, 
        array $attributes = []
    ) : string 
    {
        return self::tag("th", $content, $attributes);
    }
1370607
public function setMetaData($name, $content, $http_equiv = false)
	{
		$name = strtolower($name);

        if($name == 'description') {
			$this->setDescription($content);
		} else {

        	if ($http_equiv == true) {
				$this->_metaTags['http-equiv'][$name] = $content;
			} else {
				$this->_metaTags['standard'][$name] = $content;
			}
		}
	}
82212
public static Attribute<HtmlTag> meta( String name, String value )
    {
        return head( "meta", ignored ->
        {
        }, new Attribute<Void>()
        {
            @Override
            public String name()
            {
                return name;
            }

            @Override
            public String value( Void target )
            {
                return value;
            }
        } );
    }
929367
public function inlineAttachment($name, $content)
    {
        if (!is_string($content) && (!is_resource($content) || get_resource_type($content) != 'stream')) {
            throw new Exception\InvalidArgumentException(
                sprintf("Attachment content must be either string or stream, %s passed")
            );
        }
        
        $this->attachments[$name] = [
            'content' => $content,
            'inline'  => true
        ];
    }
685062
public function getMeta($name)
    {
        $node = $this->filterXPath('descendant-or-self::meta[@name = \'' . $name . '\']')->getNode(0);
        if ($node instanceof \DOMElement) {
            return $node->getAttribute('content');
        } else {
            return null;
        }
    }
1132575
public function getTag(string $name)
    {
        $tagFinderOutput = $this->caller
            ->execute(TagCommand::getInstance()->listTags())
            ->getOutputLines(true);

        foreach ($tagFinderOutput as $line) {
            if ($line === $name) {
                return new Tag($this, $name);
            }
        }

        return null;
    }
365147
public function getMetadataAttribute(string $name)
    {
        if (array_key_exists($name, $this->metadata)) {
            return $this->metadata[$name];
        }

        throw new MetadataAttributeNotFoundException($this, $name);
    }