diff options
author | Matthew Somerville <matthew@mysociety.org> | 2011-07-01 13:01:21 +0100 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2011-07-01 13:01:21 +0100 |
commit | 3237f578ba460d77456bb6d525635ecccddaede1 (patch) | |
tree | 8cfde25fab8bd5e75dc8a269d27f76a0d5a0cd15 | |
parent | 40f395d155f102457b6e3810d740dd64fd98a6ae (diff) |
Escape single quotes in JS.
-rw-r--r-- | templates/web/default/maps/pins_js.html | 2 |
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 4a5814b15..7c552bdbc 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 %]' ] + [ [% pin.latitude %], [% pin.longitude %], '[% pin.colour %]', '[% pin.id %]', '[% pin.title.replace("'", "\'") %]' ] [%- IF !loop.last %],[% END %] [% END %] ] |