]> git.ipfire.org Git - thirdparty/python-drafthorse.git/commit
Escape user input going to xmp metadata (#80)
authorEetu Purontaus <eetu.purontaus@gmail.com>
Tue, 2 Sep 2025 12:34:46 +0000 (15:34 +0300)
committerGitHub <noreply@github.com>
Tue, 2 Sep 2025 12:34:46 +0000 (14:34 +0200)
commite96e3bc77b26b81aa80d4018b0bc121403cd50ec
tree96ba8b0cafdf9ec355550767ffed8368bf726c00
parent2af5f671ba0d513f3519c889b9909642e05aba0f
Escape user input going to xmp metadata  (#80)

* Autodetect minimum and basic-wl profiles when adding xml to pdf

* Test attaching to and reading back from pdf

Demonstrates issue with xmp metadata and characters
in facturx payload (ampersands) that should be escaped

* Escape user metadata before constructing XMP
drafthorse/pdf.py
tests/test_roundtrip.py