tests: add %AMP macro, use it in two tests

To allow replacing `&` characters in `tests/data/test*` files for
XML-compliance.

Also:
- document `%GT`, `%LT`
  Follow-up to de49cc89ab #19470

Closes #19824
This commit is contained in:
Viktor Szakats 2025-12-02 05:05:36 +01:00
parent 0417d323c9
commit 004f41c186
No known key found for this signature in database
GPG key ID: B5ABD165E2AEF201
4 changed files with 15 additions and 8 deletions

View file

@ -88,6 +88,14 @@ lines:
%SP - space
%TAB - horizontal tab
## Special characters
Macros to help keep data files XML-compliant:
%AMP - Ampersand: `&`
%GT - Greater-than sign: `>`
%LT - Less-than sign: `<`
## Insert capped epoch days
Mostly to test capped cookie expire dates: `%days[NUM]` inserts the number of