mirror of
https://github.com/standardebooks/web.git
synced 2025-07-12 17:42:29 -04:00
Flesh out OPDS generation backend to be more robust and to support generic Atom feeds
This commit is contained in:
parent
35188195f1
commit
f6df03cfca
23 changed files with 1549 additions and 267 deletions
|
@ -35,4 +35,8 @@ class Formatter{
|
|||
public static function ToPlainText(?string $text): string{
|
||||
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');
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue