echo '<meta property="article:published_time" content="<?php echo htmlentities($datePublished, \ENT_QUOTES, "UTF-8", false); ?>">';
result: <meta property="article:published_time" content="<?php echo htmlentities($datePublished, \ENT_QUOTES, "UTF-8", false); ?>"> And i get "> printed above the navbar
I know that it's because of the double quotes that starts on content=", but i need to put the UTF-8 on the code line.
I cant put "" and i can't put '', so what i do? There's a way to echo this?