CGGoogleMaps2 – encoding problem with point text
Posted: Fri Sep 22, 2017 9:39 am
In CGGoogleMaps2, I have a problem with broken HTML for the text in the box that pops up when you click on a map point.
As I understand it, the help file says this box (the "info window") expects HTML, so quotes are escaped, but the content is not converted to HTML entities.
In practice, though, when I enter:
it renders as:
It's as if more quotes get added, quotes are escaped, and some of the quotes are encoded. I'm not sure in which order! In practice, the text displays OK but the thumbnail images don't.
I’m currently using CGGoogleMaps2 1.1.1 with CGExtensions 1.56.2 and CGSimpleSmarty 2.16. CMSms 2.2.3.1. However, it was broken (presumably from the same cause) back in CMSms 1.x, from which I've only just upgraded.
Map in question is at http://stanhoe.org/about/map. Apart from this issue, the map (and others on the same site) works fine.
Suggestions would be much appreciated.
As I understand it, the help file says this box (the "info window") expects HTML, so quotes are escaped, but the content is not converted to HTML entities.
In practice, though, when I enter:
Code: Select all
<p><img style="float: right; margin-left: 15px; border: 1px solid black;" src="uploads/images/map_icons/Pit.jpg" alt="The Pit" width="100" height="66" />Stanhoe’s famous duckpond is known to locals as “The Pit”.</p>Code: Select all
<p><img style="\"float:" right;="" margin-left:="" 15px;="" border:="" 1px="" solid="" black;\"="" src="\"uploads/images/map_icons/Pit.jpg\"" alt="\"The" pit\"="" width="\"100\"" height="\"66\"">"Stanhoe’s famous duckpond is known to locals as “The Pit”.</p>"I’m currently using CGGoogleMaps2 1.1.1 with CGExtensions 1.56.2 and CGSimpleSmarty 2.16. CMSms 2.2.3.1. However, it was broken (presumably from the same cause) back in CMSms 1.x, from which I've only just upgraded.
Map in question is at http://stanhoe.org/about/map. Apart from this issue, the map (and others on the same site) works fine.
Suggestions would be much appreciated.