diff --git a/apps/SentinelWMTS/SentinelWMTS.js b/apps/SentinelWMTS/SentinelWMTS.js index 85e9a9486..95182a149 100644 --- a/apps/SentinelWMTS/SentinelWMTS.js +++ b/apps/SentinelWMTS/SentinelWMTS.js @@ -25,6 +25,7 @@ * WebWorldWind can be found in the WebWorldWind 3rd-party notices and licenses * PDF found in code directory. */ +var ESAPI = require('node-esapi'); define(['../../src/WorldWind', '../util/GoToBox', '../util/LayersPanel', @@ -105,7 +106,7 @@ define(['../../src/WorldWind', var allWmtsLayers = wmtsCapabilities.getLayers(); for (var i = 0; i < allWmtsLayers.length; i++) { var layerItem = $('
  • ' + allWmtsLayers[i].titles[0].value + '
  • '); - ulItem.append(layerItem); + ulItem.append('url(<%=ESAPI.encoder().encodeForJS(ESAPI.encoder().encodeForURL(layerItem))%>)'); } ulItem = $('');