Improve some string handling

This commit is contained in:
Klaus-Uwe Mitterer 2017-08-31 13:21:59 +02:00
parent 9239cb3148
commit 30971e3ade

View file

@ -98,7 +98,7 @@ if ($type == "validate") {
print(" <station><name>" . trim($service["start"]["station"]) . "</name><id>" . $api->validate($service["start"]["station"])[0]["id"] . "</id></station>\n");
print(" <date>" . $service["start"]["date"] . "</date><time>" . trim($service["start"]["time"]) . "</time>\n");
print(" <platform>" . $service["start"]["plattform"] . "</platform>\n");
print(" <current>" . htmlspecialchars($service["start"]["prognose"], ENT_XML1, 'UTF-8') . "</current>");
print(" <current>" . htmlspecialchars($service["start"]["prognose"], ENT_XML1, 'UTF-8') . "</current>\n");
print(" </departure>\n");
print(" <arrival>\n");