Template for the infoWindow in AjaxSearch Build the markup inside fluid variable infowindow, pass it through amo:trim viewhelper to strip linebreaks and write it to the javascript variable
{location.name -> f:format.htmlentities()}
{location.categories}
{location.www}
{location.infoWindowAddress}
{location.zip} {location.city}
{location.phone}
{f:translate(key: 'LLL:EXT:amodebus-sitepackage/Resources/Private/Language/locallang.xlf:locationShowOnList')}
info = '{infowindow -> amo:trim() -> f:format.raw()}' infoWindow[{i}] = new google.maps.InfoWindow({content: info }); google.maps.event.addListener(marker[{i}], "click", function() { infoWindow[{i}].open(map,marker[{i}]); });