Disable rewrite of html_tag? In my module 

    function hook_page_attachments(array &amp;$page) {

      $og_image = array(
        '#type' =&gt; 'html_tag',
        '#tag' =&gt; 'meta',
        '#attributes' =&gt; array(
          'property' =&gt; 'og:image',
          'content' =&gt;   'http://example.com/pic.php?id=839813.jpg&amp;size=300',
        ),
      );


      $page['#attached']['html_head'][] =  [$og_image, 'og:image'];
}


On the page the results look like this 

&lt;meta property="og:image" content="http://example.com/pic.php?id=839813.jpg&amp;amp;size=300" /&gt;


The &amp; is replaced for html use. Can I avoid that or added meta tags in another way?
I build a workaround. I created a custom path in drupal that redirect to the external image url like /image/{img-id} . If anyone find an answer on the main question please post.