Closed (fixed)
Project:
Google Maps Tools
Version:
6.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
4 Feb 2010 at 13:18 UTC
Updated:
24 Jan 2018 at 06:03 UTC
Jump to comment: Most recent
Comments
Comment #1
xmarket commentedCan you provide more details?
Comment #2
srobert72 commentedI have a title that contains '&' character :
golf & spa hotelIn GMaps map tooltip, it appears :
golf & spa hotelIf I check HTML source code it is writen :
"title": "golf \x26amp; spa hotel"Correct HTML would be :
"title": "golf \x26 spa hotel"I think title is first encoded in HTML :
golf & spa hotelbecomesgolf & spa hotelthen it is encoded for JQuery :
golf & spa hotelbecomesgolf \x26amp; spa hotelFirst conversion is not necesssary.
We must give tooltip brut text as it is set in node edit form :
golf & spa hotelwould becomegolf \x26 spa hotelComment #3
srobert72 commentedI don't know if problem is really here but it must be something like this :
file : gmaps.static-map-pages.inc
line : 458
check_plain() will encode text in HTML format.
Comment #4
xmarket commentedComment #6
summit commentedHi,
Thanks. This worked also in D7!
Thanks for sharing.
greetings, Martijn
Comment #7
stephen ollman@Summit, when you say it works in D7 as well, what module and file are you referring to?
Comment #8
stephen ollmanFound the D7 file to edit: gmap_plugin_style_gmap.inc
However the check_plain() function didn't work on either the $tooltip variable or on $marker->title .
The apostrophe in the tooltip title is still showing as
'and the ampersand as&What I did add to the file is the following to cover both and apostrophe and an ampersand.
This was added prior to:
Certainly open to a better, cleaner solution.