Render the meta tags

@return string
11334
public function render() {
		$parts = [];
		
		if (empty($this->elements)) {
			return '';
		}
		
		// Elements
		foreach ($this->elements as $element) {
			if (! $element->isEmpty()) {
				$parts[] = $element->assemble();
			}
		}
		
		return implode(PHP_EOL, $parts);
	}
1035394
protected function renderContent()
    {
        foreach ($this->httpEquivs as $name => $content)
            echo CHtml::metaTag($content, null, $name);

        if ($this->_title !== null)
            echo CHtml::tag('title', array(), is_array($this->_title) ? implode($this->titleSeparator, $this->_title) : $this->_title);

        if ($this->_description !== null)
            echo CHtml::metaTag($this->_description, 'description');

        if ($this->_keywords !== null)
            echo CHtml::metaTag($this->_keywords, 'keywords');

        foreach ($this->_properties as $name => $content)
            echo CHtml::tag('meta', array('property' => $name, 'content' => $content));

        if ($this->_canonical !== null)
            echo CHtml::linkTag('canonical', null, $this->_canonical);
    }
1218941
public function getMetaHtml()
    {
        $meta = '';
        if (empty($this->meta)) {
            return $meta;
        }

        foreach ($this->meta as $name => $content) {
            $meta .= '<meta name="' . $name . '" content="' . $content . '"/>' . "\n";
        }

        return $meta;
    }
829386
private function render() {
		$strings = implode($this->strings);
		
		// Render includes
		foreach ($this->incTemplates as $path => $include) {
			$incOutput = $include->render();
			$path = preg_replace("/\//", "\/", $path);
			$strings = preg_replace("/\{include\s$path\}/", $incOutput, $strings);
		}
		
		// Render if-statements
		foreach ($this->ifTemplates as $key => $sub) {
			foreach ($sub as $iKey => $instance) {
				$str = '';
				
				if ($this->expressions[$key]->evaluate($this->vars)) {
					$str = $instance->render();
				}
				
				$pregKey = preg_quote($key, '/');
				$strings = preg_replace("/\{if:$pregKey:$iKey\}/", $str, $strings);
			}
		}
		
		// Render foreach-loops
		foreach ($this->forTemplates as $key => $sub) {
			foreach ($sub as $iKey => $instance) {
				$tmplGen = '';
				
				if (isset($this->vars[$key]) && is_array($this->vars[$key])) {
					foreach ($this->vars[$key] as $assocArray) {
						foreach ($assocArray as $k => $v)
							$instance->set($k, $v);
						$tmplGen .= $instance->render();
					}
				}
				
				$pregKey = preg_quote($key, '/');
				$strings = preg_replace("/\{for:$pregKey:$iKey\}/", $tmplGen, $strings);
			}
		}
		
		// Render plain old variables
		foreach ($this->vars as $key => $val) {
			if (!is_array($val))
				$strings = preg_replace("/\{$key\}/", $val, $strings);
		}
		
		// Render expressions
		foreach ($this->expressions as $key => $expr) {
			$eval = $expr->evaluate($this->vars);

			// If we're an array, lets insert the number of items in the array.
			if ( is_array( $eval ) ) {
				$eval = count( $eval );
			}

			$pregKey = preg_quote($key, '/');
			
			$strings = preg_replace('/\{'.$pregKey.'\}/', $eval, $strings);
		}
		
		$strings = preg_replace("/\\\{/", '{', $strings);
		$strings = preg_replace("/\\\}/", '}', $strings);

		return $strings;
	}
530380
public function render()
    {
        $htmlContent = '';
        foreach (self::$httpEquivList as $httpEquivName => $httpEquivValue) {
            $htmlContent .= '<meta http-equiv="' . $httpEquivName . '" content="' . $httpEquivValue . '">' . PHP_EOL;
        }
        foreach (self::$metaList as $metaName => $metaValue) {
            $htmlContent .= '<meta name="' . $metaName . '" content="' . $metaValue . '">' . PHP_EOL;
        }
        return $htmlContent;
    }
567554
public function render()
    {
        $output[] = $this->open();

        if ($this->image instanceof Element) {
            $this->image->attributes->addAttributeClass(['mr-3']);

            if ($this->alignment === 'TOP') {
                $this->image->attributes->addAttributeClass(['align-self-start']);
            } elseif ($this->alignment === 'MIDDLE') {
                $this->image->attributes->addAttributeClass(['align-self-center']);
            } elseif ($this->alignment === 'BOTTOM') {
                $this->image->attributes->addAttributeClass(['align-self-end']);
            }

            $output[] = $this->image;
        }

        if ($this->paragraph instanceof Element) {
            $this->body->childNodes->prepend($this->paragraph);
        }

        if ($this->hasChildNodes()) {
            foreach ($this->childNodes as $childNode) {
                $this->body->childNodes->push($childNode);
            }
        }

        if ($this->heading instanceof Element) {
            $this->heading->tagName = 'h4';
            $this->heading->attributes->addAttributeClass(['mt-0']);
            $this->body->childNodes->prepend($this->heading);
        }

        $output[] = $this->body;

        $output[] = $this->close();

        return implode(PHP_EOL, $output);
    }
60029
public function render(): string
    {
        $html = "<{$this->tag}>";
        if ($this->hasChildren() === true) {

            foreach ($this->children() as $child) {
                $html .= $child->render();
            }
        }
        $html .= "{$this->escape($this->insert)}</{$this->tag}>\n";

        return $html;
    }
1187210
public function render(array $metaTags = array())
    {
        $html = '';

        foreach ($metaTags as $metaTag) {
            if (!$metaTag instanceof Item) {
                throw new InvalidArgumentException('metaTags', 'Cannot render meta tag, not an instance of \Netgen\Bundle\OpenGraphBundle\MetaTag\Item');
            }

            $tagName = htmlspecialchars($metaTag->getTagName(), ENT_QUOTES | ENT_SUBSTITUTE, 'UTF-8');
            $tagValue = htmlspecialchars($metaTag->getTagValue(), ENT_QUOTES | ENT_SUBSTITUTE, 'UTF-8');

            if (!empty($tagName) && !empty($tagValue)) {
                $html .= "<meta property=\"$tagName\" content=\"$tagValue\" />\n";
            }
        }

        return $html;
    }
253567
public function render()
    {

        $attr = [];

        foreach($this->attributes as $k => $v) {
            $attr[] = sprintf('%s="%s"', $k, $v);
        }

        return sprintf('<label %s>%s</label>',
            implode(' ', $attr),
            trim($this->labelText)
        );

    }
956697
protected function renderAttribs()
    {
        // Element name
        $aHtml = ['name="' . $this->strName . '"'];

        // Default value
        if ($this->mValue && empty($this->aOptions))
            $aHtml[] = 'value="' . $this->mValue . '"';

        // Misc attribs
        foreach ($this->aAttribs as $strKey => $mValue) {
            $aHtml[] = is_bool($mValue)
                ? ($mValue ? $strKey : '') // just the attribute name for booleans
                : $strKey . '="' . $mValue . '"'; // otherwise key="value"
        }

        return implode(' ', $aHtml);
    }
660347
protected function renderMetaTags(array $metaTags)
    {
        $ret = array();

        $isXhtml = $this->isXhtml();

        foreach ($metaTags as $metaTag) {
            $tag = $metaTag['tag'];

            $attributes = array();

            foreach ($metaTag['attributes'] as $key => $value) {
                $attributes[] = $key . '="' . htmlspecialchars($value) . '"';
            }

            if ($isXhtml) {
                $ret[] = '<' . $tag . ' ' . implode(' ', $attributes) . '/>';
            } else {
                $ret[] = '<' . $tag . ' ' . implode(' ', $attributes) . '>';
            }
        }

        $separator = "\n";

        return $separator . implode($separator, $ret) . $separator;
    }
1091250
public function renderTags() : string
    {
        $output = '';
        $vars   = ['{{name}}', '{{value}}'];
        foreach ($this->tags as $tag) {
            $name = $tag->name;

            if ($tag->prefixed) {
                $name = self::NAME_PREFIX.$name;
            }

            $output .= str_replace($vars, [$name, $tag->value], $this->template);
        }

        return $output;
    }
1106876
def render_custom(tags)
      meta_tags.meta_tags.each do |name, data|
        Array(data).each do |val|
          tags << Tag.new(:meta, configured_name_key(name) => name, content: val)
        end
        meta_tags.extract(name)
      end
    end
556608
final protected function generate_rendered_tags() {

		$data_sources   = $this->data_sources;
		$data_sources[] = $this->recipient;

		$tags     = $this->manager->render_tags( $data_sources );
		$rendered = array();

		foreach ( $tags as $tag => $value ) {
			$rendered[ '{' . $tag . '}' ] = $value;
		}

		$this->regenerate = false;

		return $rendered;
	}
757390
public function render() {
		
		$buffer = ''; 
		
		if ( !empty( $this->header ) ) {
			
			$buffer .= '<tr'.HTML::attr( $this->header[1] ).'>';
			foreach( $this->header[0] as $head ) {
				$head->name = 'th';
				$buffer .= $head->render();
			}
			$buffer .= '</tr>';
			foreach( $this->data as $row ) {
				$buffer .= '<tr'.HTML::attr( $row[1] ).'>';
				foreach( $this->header[0] as $key => $value ) {
					$buffer .= HTML::tag( 'td', $row[0][$key]->value, $row[0][$key]->attr );
				}
				$buffer .= '</tr>';
			}
		}
		else {
			foreach( $this->data as $row ) {
				$buffer .= '<tr'.HTML::attr( $row[1] ).'>';
				foreach( $row[0] as $value ) {
					$buffer .= $value->render();
				}
				$buffer .= '</tr>';
			}
		}
		
		$this->element->value = $buffer;
		
		return $this->element->render();
	}
710422
public function render()
    {
        if ($this->isSelfClosing) {
            $element = "<{$this->tag}".$this->getAttributesString()." />";
        } else {
            $element = "<{$this->tag}".$this->getAttributesString().">".$this->getInnerHtml()."</{$this->tag}>";
        }
        $before = !empty($this->before) ? implode(PHP_EOL, $this->before) : '';
        $after  = !empty($this->after) ? implode(PHP_EOL, $this->after) : '';

        return $before . $element . $after;
    }
740325
public function renderElements()
    {
        if ($this->isSelfClosing) {
            return '';
        }

        $html = '';

        foreach ($this->elements as $element) {
            $html .= $element;
        }

        return $html;
    }