Escape transcriptoin URLs in Wanted Ebooks page

This commit is contained in:
Alex Cabal 2025-07-07 11:13:32 -05:00
parent 38400991c2
commit 9c15cd2c1f
2 changed files with 2 additions and 2 deletions

View file

@ -83,7 +83,7 @@ class Formatter{
}
/**
* Escape a strin so that it's safe to output directly into an XML document. Note that this is **not the same** as escaping for HTML. Any query strings in URLs should already be URL-encoded, for example `?foo=bar+baz&x=y`.
* Escape a string so that it's safe to output directly into an XML document. Note that this is **not the same** as escaping for HTML. Any query strings in URLs should already be URL-encoded, for example `?foo=bar+baz&x=y`.
*/
public static function EscapeXml(?string $text): string{
return htmlspecialchars(trim($text ?? ''), ENT_QUOTES|ENT_XML1, 'utf-8');