X-Git-Url: https://dev.renevier.net/gitweb.cgi?a=blobdiff_plain;f=js%2Fsyp.js;h=1f4d632d087c5f2f8afa1108e1e3784329f28bed;hb=885c93c5ee2dfce99d06fb643899717b836bbf6e;hp=a7586ca7d0fedc4232f1a85318f4bcc19dbba159;hpb=726e61ea5e917d98fa8b58bbad46811304e23ff3;p=syp.git diff --git a/js/syp.js b/js/syp.js index a7586ca..1f4d632 100644 --- a/js/syp.js +++ b/js/syp.js @@ -3,7 +3,7 @@ OpenLayers.Control.SypAttribution = OpenLayers.Class (OpenLayers.Control.Attribution, { updateAttribution: function() { - var attributions = [SypStrings.propulsedByLink]; + var attributions = [SypStrings.poweredByLink]; if (this.map && this.map.layers) { for(var i=0, len=this.map.layers.length; i" + feature.cluster[0].attributes.description; } else { @@ -384,6 +385,18 @@ var SYP = { } div.style.display = "block"; div.appendChild(textNode); + }, + + escapeHTML: function (str) { + if (!str) { + return ""; + } + return str. + replace(/&/gm, '&'). + replace(/'/gm, '''). + replace(/"/gm, '"'). + replace(/>/gm, '>'). + replace(/