* [bug #57154, doing] decode html entities in api title.

This commit is contained in:
sunhao
2024-11-20 08:41:30 +08:00
committed by 刘刚
parent 6893eacc33
commit ae2feedb6d
+2 -2
View File
@@ -273,7 +273,7 @@ class api extends control
$api->originTitle = $api->title;
$api->icon = "api is-$api->method";
$api->api = true;
$api->title = "$api->method $api->path $api->title";
$api->title = "$api->method $api->path " . htmlspecialchars_decode($api->title);
}
$data['docs'] = array_values($apis);
}
@@ -309,7 +309,7 @@ class api extends control
$api->originTitle = $api->title;
$api->icon = "api is-$api->method";
$api->api = true;
$api->title = "$api->method $api->path $api->title";
$api->title = "$api->method $api->path " . htmlspecialchars_decode($api->title);
}
echo json_encode($apis);