xml-twig 1.3.7 → 1.3.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/twig.js +8 -0
package/package.json
CHANGED
package/twig.js
CHANGED
|
@@ -769,6 +769,14 @@ class Twig {
|
|
|
769
769
|
return this.root().writer(true, true).output;
|
|
770
770
|
};
|
|
771
771
|
|
|
772
|
+
/**
|
|
773
|
+
* Returns XML string of the element
|
|
774
|
+
* @returns {string} The XML-Element as string
|
|
775
|
+
*/
|
|
776
|
+
toString = function () {
|
|
777
|
+
return this.writer(true).toString();
|
|
778
|
+
};
|
|
779
|
+
|
|
772
780
|
/**
|
|
773
781
|
* Internal recursive function used by `writer()`
|
|
774
782
|
* @param {external:XMLWriter} xw - The writer object
|