mirror of
https://github.com/standardebooks/web.git
synced 2025-07-12 17:42:29 -04:00
Further refinment to OPDS/RSS generation and also add Atom feeds
This commit is contained in:
parent
d75d847004
commit
f9fd6c8a02
23 changed files with 733 additions and 859 deletions
|
@ -33,10 +33,10 @@ class Formatter{
|
|||
}
|
||||
|
||||
public static function ToPlainText(?string $text): string{
|
||||
return htmlspecialchars(trim($text), ENT_QUOTES, 'UTF-8');
|
||||
return htmlspecialchars(trim($text), ENT_QUOTES, 'utf-8');
|
||||
}
|
||||
|
||||
public static function ToPlainXmlText(?string $text): string{
|
||||
return htmlspecialchars(trim($text), ENT_QUOTES|ENT_XML1, 'UTF-8');
|
||||
return htmlspecialchars(trim($text), ENT_QUOTES|ENT_XML1, 'utf-8');
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue