Meta tags plugin output without entity

Ok so im trying to improve my seo, and im messing about with meta tags, but i’m getting some weirdness. Something is converting & to an html entity.

if i do this manually,

<meta itemprop="name" content="<?= $site->seotitle(); ?>">

i get the desired result

<meta itemprop="name" content="Hash&Salt Web Design" />

If i do the same thing with the meta tags plugin on the title tag, it converts the & to an entity…

c::set('meta-tags.default', function(Page $page, Site $site) {
    return [
        'title' => $page->isHomePage()
          ? $site->seotitle()
          : $page->seotitle().' | '.$site->seotitle(),

Results in:

<title>Hash&amp;Salt Web Design</title>

How do i tell it not to? i tried $site->seotitle()->html() and $site->seotitle()->value() becuase im sure i read a similar question somewhere and i think that was the answer… but no luck. Any ideas?

Edit: Google tells me that its ok to have the entity in these tags, but I would still like to know why its ignoring me!

Guess, these two bits of code are responsible:

    public function title($value)
    {
        if (! empty($value)) {
            $tag = "<title>{$this->escapeAll($value)}</title>";

            $this->tags['title'][] = $tag;

            return $tag;
        }
    }

And the escape function

protected function escapeAll($value)
  {
    return htmlentities($value, ENT_QUOTES, 'UTF-8');
  }

Doesn’t happen in my environment.

Thanks… sooo as I thought, its doing it wether i want it or not. :frowning: