feat(package.json): add unified development command to run 11ty + php concurrently off port 8000
fix(dynamic.php.liquid): trim dynamic metadata
This commit is contained in:
parent
afa7144142
commit
98b2b46e3c
5 changed files with 353 additions and 36 deletions
|
@ -68,4 +68,11 @@
|
|||
return $string . 's' . ($trailing ? $trailing : '');
|
||||
}
|
||||
|
||||
function cleanMeta($value) {
|
||||
$value = trim($value ?? '');
|
||||
$value = str_replace(["\r", "\n"], ' ', $value);
|
||||
$value = preg_replace('/\s+/', ' ', $value);
|
||||
return htmlspecialchars($value, ENT_QUOTES, 'UTF-8');
|
||||
}
|
||||
|
||||
?>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue