mirror of
https://github.com/standardebooks/web.git
synced 2025-07-14 02:21:55 -04:00
Limit artwork results at the DB level
This commit is contained in:
parent
d7275074b8
commit
a9dcdcde94
4 changed files with 190 additions and 111 deletions
|
@ -36,7 +36,13 @@ 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
|
||||
return htmlspecialchars(trim($text ?? ''), ENT_QUOTES|ENT_XML1, 'utf-8');
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue