At least for some characters, there seem to be double escaping issues. For example, setting name in a payment to Test & Test results in <Nm>Test &amp; Test</Nm>.
Removing the escape() around the assignments in debit.py fixes this issue and results in <Nm>Test & Test</Nm>, so there already seems to be some builtin escaping going on. I'm just not sure if xml.sax.saxutils.escape maybe does some additional escaping that's required?
At least for some characters, there seem to be double escaping issues. For example, setting
name
in a payment toTest & Test
results in<Nm>Test &amp; Test</Nm>
.The issue seems to be these: https://github.com/raphaelm/python-sepadd/blob/6fd06341b8fa2b0b4fef48ba0b5c410d8d80a707/sepadd/debit.py#L103
Removing the
escape()
around the assignments in debit.py fixes this issue and results in<Nm>Test & Test</Nm>
, so there already seems to be some builtin escaping going on. I'm just not sure ifxml.sax.saxutils.escape
maybe does some additional escaping that's required?Using Python 3.6.2 and python-sepadd 1.1.0