aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2011-07-01 13:03:45 +0100
committerMatthew Somerville <matthew@mysociety.org>2011-07-01 13:03:45 +0100
commit20eaad234b9c237cd809164a207d2f352013e3c0 (patch)
tree12a122471a1e2650eb1e72bd7e6a83b646d53eea
parent3237f578ba460d77456bb6d525635ecccddaede1 (diff)
Double escape, whoops.
-rw-r--r--templates/web/default/maps/pins_js.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/web/default/maps/pins_js.html b/templates/web/default/maps/pins_js.html
index 7c552bdbc..08941affc 100644
--- a/templates/web/default/maps/pins_js.html
+++ b/templates/web/default/maps/pins_js.html
@@ -1,4 +1,4 @@
[ [% FOR pin IN map.pins -%]
- [ [% pin.latitude %], [% pin.longitude %], '[% pin.colour %]', '[% pin.id %]', '[% pin.title.replace("'", "\'") %]' ]
+ [ [% pin.latitude %], [% pin.longitude %], '[% pin.colour %]', '[% pin.id %]', '[% pin.title.replace("'", "\\'") %]' ]
[%- IF !loop.last %],[% END %]
[% END %] ]