meta-tags
meta-tags copied to clipboard
charset function
I think you should add this function as well
public function charset($set = "utf-8")
{
$tag = $this->createTag('meta', ['charset' => $set]);
$this->addToTagsGroup('meta', 'charset', $tag);
return $tag;
}
public function charset($set = "utf-8") { $tag = $this->createTag('meta', ['charset' => $set]); $this->addToTagsGroup('meta', 'charset', $tag); return $tag; }
How does it work?
public function charset($set = "utf-8") { $tag = $this->createTag('meta', ['charset' => $set]); $this->addToTagsGroup('meta', 'charset', $tag); return $tag; }
How does it work?
$tags = new MetaTags;
$tags->title('My Awesome Site');
$tags->charset(); // default value = utf-8
$tags->render();
or
$tags = new MetaTags;
$tags->title('My Awesome Site');
$tags->charset('iso-8859-3'); // is Latin 3 Alphabet (ISO)
$tags->render();
But you need to add this function manually. Because it has not been added to the library yet.