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:
Cory Dransfeldt 2025-05-07 12:54:18 -07:00
parent afa7144142
commit 98b2b46e3c
No known key found for this signature in database
5 changed files with 353 additions and 36 deletions

View file

@ -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');
}
?>