Add <link rel="canonical"> to some pages

This commit is contained in:
Alex Cabal 2024-05-08 11:01:18 -05:00
parent f8b817c4e1
commit 7c8463d297
8 changed files with 128 additions and 82 deletions

View file

@ -36,10 +36,6 @@ class Formatter{
return htmlspecialchars(trim($text ?? ''), ENT_QUOTES, 'utf-8');
}
public static function EscapeXhtmlQueryString(?string $text): string{
return str_replace('&', '&amp;', trim($text ?? ''));
}
public static function EscapeXml(?string $text): string{
// Accepts a query string that has already been url-encoded. For example,
// ?foo=bar+baz&x=y