public function buildMeta($name = '', $content = '', $httpEquiv = '', $charset = '')
    {
        // Create meta element
        $meta = $this->buildHtmlElement('meta', $value = '', $id = '', $class = '');
        $meta->attr('name', $name);
        $meta->attr('http-equiv', $httpEquiv);
        $meta->attr('content', htmlspecialchars($content));
        $meta->attr('charset', $charset);

        // Return element
        return $meta;
    }
public function buildMeta($name = '', $content = '', $httpEquiv = '', $charset = '')
    {
        // Create meta element
        $meta = $this->buildHtmlElement('meta', $value = '', $id = '', $class = '');
        $meta->attr('name', $name);
        $meta->attr('http-equiv', $httpEquiv);
        $meta->attr('content', htmlspecialchars($content));
        $meta->attr('charset', $charset);

        // Return element
        return $meta;
    }
public function buildMeta ( $ name = '' , $ content = '' , $ httpEquiv = '' , $ charset = '' ) { // Create meta element $ meta = $ this -> buildHtmlElement ( 'meta' , $ value = '' , $ id = '' , $ class = '' ) ; $ meta -> attr ( 'name' , $ name ) ; $ meta -> attr ( 'http-equiv' , $ httpEquiv ) ; $ meta -> attr ( 'content' , htmlspecialchars ( $ content ) ) ; $ meta -> attr ( 'charset' , $ charset ) ; // Return element return $ meta ; }
Build a meta element.

@param string $name      The meta name attribute.
@param string $content   The meta content attribute.
@param string $httpEquiv The meta http-equiv attribute.
@param string $charset   The meta charset attribute.

@return HTMLElement

@throws Exception
Build a meta element .