X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/8fd7d319b7ef6ee4d4f8cf3b61eb47903e7fb1eb..dbb1f5c0e20ea2d915da4638b74d6579801c4586:/lib/template/search-html.php?ds=sidebyside diff --git a/lib/template/search-html.php b/lib/template/search-html.php index b270e02f..7da79ad8 100644 --- a/lib/template/search-html.php +++ b/lib/template/search-html.php @@ -199,11 +199,13 @@ target="_blank">FAQ } echo (isset($aResult['icon'])?'icon':''); - echo ' '.$aResult['name'].''; + echo ' '.htmlspecialchars($aResult['name']).''; echo ' '.round($aResult['lat'],3).','.round($aResult['lon'],3).''; echo ' '.$aResult['place_id'].''; if (isset($aResult['label'])) echo ' ('.$aResult['label'].')'; + else if ($aResult['type'] == 'yes') + echo ' ('.ucwords(str_replace('_',' ',$aResult['class'])).')'; else echo ' ('.ucwords(str_replace('_',' ',$aResult['type'])).')'; echo ' (details)';