From 73a38a08356726990224f98c3d974acd1e0c4652 Mon Sep 17 00:00:00 2001 From: Manfred Kindl Date: Wed, 18 Nov 2020 17:41:30 +0100 Subject: [PATCH] Formatierung XML-Output --- soap/datenverbund_client.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/soap/datenverbund_client.php b/soap/datenverbund_client.php index f751e2498..a3b0982f8 100644 --- a/soap/datenverbund_client.php +++ b/soap/datenverbund_client.php @@ -469,7 +469,14 @@ if (isset($_REQUEST['submit'])) break; } if (isset($_POST['debug'])) - echo '
'.nl2br(htmlentities($dvb->debug_output)).'
'; + { + $output = nl2br(htmlentities($dvb->debug_output)); + $output = str_replace('><','>
<',$output); + $output = preg_replace('/(<uni:.*?>)/','$1',$output); + $output = preg_replace('/(<\/uni:.*?>)/','$1',$output); + + echo '
'.$output.'
'; + } } ?>