Satisfy automated SEO warnings about missing title (wanting an explicit tag)
and recommended summary length (fitting some long paragraphs by omitting
inconsequential spaces).
<head>
<meta charset="utf-8" />
<?php if ($Article->title) { ?>
<head>
<meta charset="utf-8" />
<?php if ($Article->title) { ?>
- <title><?= htmlspecialchars($Article->safetitle) ?></title>
+ <title property="og:name"><?= htmlspecialchars($Article->safetitle) ?></title>
<?php } ?>
<?php if ($Article->teaser) { ?>
<?php } ?>
<?php if ($Article->teaser) { ?>
- <meta name="description" property="og:description" content="<?= strip_tags($Article->teaser) ?>" />
+ <meta name="description" property="og:description" content="<?= preg_replace('/\s+/', ' ', strip_tags($Article->teaser)) ?>" />
<?php } ?>
<meta name="viewport" content="width=device-width" />
<!--[if lt IE 9]><script src="https://cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7.3/html5shiv.min.js"></script><![endif]-->
<?php } ?>
<meta name="viewport" content="width=device-width" />
<!--[if lt IE 9]><script src="https://cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7.3/html5shiv.min.js"></script><![endif]-->