We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
format_xml
1 parent 26fa07a commit a31bfdbCopy full SHA for a31bfdb
src/format.php
@@ -38,6 +38,19 @@ function format_bytes($bytes, $precision = 2)
38
}
39
40
41
+if (!function_exists('format_xml')) {
42
+ function format_xml($xml)
43
+ {
44
+ $dom = new DOMDocument();
45
+
46
+ $dom->loadXML($xml);
47
+ $dom->formatOutput = true;
48
+ $dom->preserveWhiteSpace = false;
49
50
+ return $dom->saveXml();
51
+ }
52
+}
53
54
if (!function_exists('backtrace_as_string')) {
55
function backtrace_as_string()
56
{
0 commit comments