Skip to content

Commit

Permalink
Factorize parseDomFromString in xml module
Browse files Browse the repository at this point in the history
  • Loading branch information
forty committed Apr 5, 2021
1 parent 4a4ab15 commit 3a6f50c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/node-saml/xml.ts
Expand Up @@ -59,7 +59,7 @@ const normalizeNewlines = (xml: string): string => {
const normalizeXml = (xml: string): string => {
// we can use this utility to parse and re-stringify XML
// `DOMParser` will take care of normalization tasks, like replacing XML-encoded carriage returns with actual carriage returns
return new xmldom.DOMParser({}).parseFromString(xml).toString();
return parseDomFromString(xml).toString();
};

/**
Expand Down

0 comments on commit 3a6f50c

Please sign in to comment.