Index: trunk/extensions/SemanticGoogleMaps/SGM_QueryPrinter.php |
— | — | @@ -153,9 +153,10 @@ |
154 | 154 | // add a marker to the map for each location |
155 | 155 | foreach ($locations as $i => $location) { |
156 | 156 | list($lat, $lon, $title, $label) = $location; |
| 157 | + $title = str_replace("'", "\'", $title); |
157 | 158 | $label = str_replace("'", "\'", $label); |
158 | 159 | $map_text .=<<<END |
159 | | - map.addOverlay(createMarker(new GLatLng($lat, $lon), "$title", '$label')); |
| 160 | + map.addOverlay(createMarker(new GLatLng($lat, $lon), '$title', '$label')); |
160 | 161 | END; |
161 | 162 | } |
162 | 163 | |