charset() public method

Returns a charset META-tag.
public charset ( string | null $charset = null ) : string
$charset string | null The character set to be used in the meta tag. If empty, The App.encoding value will be used. Example: "utf-8".
return string A meta tag containing the specified character set.
Ejemplo n.º 1
0
 /**
  * Returns a charset META-tag.
  *
  * @param null $charset
  * @return string
  */
 public function charset($charset = null)
 {
     return parent::charset($charset) . $this->Document->eol;
 }