diff --git a/src/stanza.js b/src/stanza.js index 3944fa6..e7f1bb8 100644 --- a/src/stanza.js +++ b/src/stanza.js @@ -102,7 +102,7 @@ export class Stanza extends Builder { .join('') : value instanceof Stanza || value instanceof Builder ? value - : xmlescape(value.toString())) + : xmlescape((value ?? '').toString())) ); }, '') .trim();