mirror of
https://github.com/standardebooks/web.git
synced 2025-07-13 18:11:52 -04:00
Add <link rel="canonical"> to some pages
This commit is contained in:
parent
f8b817c4e1
commit
7c8463d297
8 changed files with 128 additions and 82 deletions
|
@ -36,10 +36,6 @@ class Formatter{
|
|||
return htmlspecialchars(trim($text ?? ''), ENT_QUOTES, 'utf-8');
|
||||
}
|
||||
|
||||
public static function EscapeXhtmlQueryString(?string $text): string{
|
||||
return str_replace('&', '&', 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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue