HTML;
diff --git a/parsers/json.php b/parsers/json.php
index 54959e7..cf3b3d8 100644
--- a/parsers/json.php
+++ b/parsers/json.php
@@ -28,20 +28,20 @@ function jsonParse($rawBody, $headers, $metadata) {
@@ -78,7 +78,7 @@ function renderJsonData($data, $path = '') {
if (!is_array($data)) {
$safe = htmlspecialchars((string)$data, ENT_QUOTES, 'UTF-8');
- return "
$safe
";
+ return "
$safe
";
}
// Check if it's an indexed array (numeric keys in sequence)
@@ -110,18 +110,18 @@ function renderJsonData($data, $path = '') {
$html .= '
';
$html .= '
Item ' . ($index + 1) . '
';
- $html .= '
';
}
@@ -133,12 +133,12 @@ function renderJsonData($data, $path = '') {
} else {
// Simple value in array
$valueSafe = htmlspecialchars((string)$item, ENT_QUOTES, 'UTF-8');
- $html .= '
';
+ $html .= '
';
}
}
} else {
@@ -161,18 +161,18 @@ function renderJsonData($data, $path = '') {
$html .= '
' . htmlspecialchars($path, ENT_QUOTES, 'UTF-8') . '
';
}
- $html .= '
@@ -170,28 +170,28 @@ function buildOutboundSmsDeliveredContent($data) {
return <<
✅ Delivery Details
-
+
HTML;
}
@@ -211,28 +211,28 @@ function buildOutboundSmsFailedContent($data) {
return <<
❌ Failure Details
-
+
@@ -261,36 +261,36 @@ function buildShortlinkClickedContent($data) {
return <<
🔗 Click Details
-
+
@@ -314,28 +314,28 @@ function buildInboundSmsContent($data) {
return <<
📥 Inbound SMS Details
-
+
@@ -358,28 +358,28 @@ function buildOptOutContent($data) {
return <<
🚫 Opt Out Details
-
+
HTML;
}
@@ -399,57 +399,57 @@ function buildContactsCallbackContent($data) {
$customFieldsHtml = '';
if (isset($data['custom_fields']) && is_array($data['custom_fields']) && !empty($data['custom_fields'])) {
- $customFieldsHtml = '
🏷️ Custom Fields
$customFieldsHtml