/ LJCPHPCodeDoc / LJCHTMLLib / LJCHTML / GetMeta


Parameters
$name - The name value.
$content - The content value.
$textState - The current text state values.

Returns

The <meta> element.

Syntax

PHP
public static function GetMeta(string $name, string $content
, LJCTextState $textState) : string

Gets a meta element.

Example

PHP
 // Gets a  element.
 private static function GetMeta()
 {
   // Root Method Begin
   $textState = new LJCTextState();
 
   // Example Method:
   $content = "width=device-width initial-scale=1";
   $result = LJCHTML::GetMeta("viewport", $content, $textState);
 
   // result:
   // <meta name="viewport"
   //   content="width=device-width initial-scale=1" />
 }

Copyright © Lester J. Clark and Contributors.
Licensed under the MIT License.