Closed madig closed 6 years ago
Add a test first
🥇
Hm. Maybe return xmlEscapeText(element.text) or ""
instead?
Maybe return xmlEscapeText(element.text) or ""
it depends where you want handle the case of element.text being None.
If that function's I/O is only meant to be strings, then it'd be the responsibility of the caller to do return xmlEscapeText(element.text or "")
Hm, makes sense. My current fix can stand then?
Anything missing or can this be merged?
Currently,
is turned into
Add a test first.