Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

charset function #8

Open
fatihgvn opened this issue May 14, 2020 · 2 comments
Open

charset function #8

fatihgvn opened this issue May 14, 2020 · 2 comments

Comments

@fatihgvn
Copy link

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;
    }
@NeftaliAcosta
Copy link

public function charset($set = "utf-8")
{
$tag = $this->createTag('meta', ['charset' => $set]);
$this->addToTagsGroup('meta', 'charset', $tag);
return $tag;
}

How does it work?

@fatihgvn
Copy link
Author

fatihgvn commented Jul 2, 2020

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants