0

application.dryml ファイルにこれがあります。

<def tag="googlemap">
  <html>
    <head>
      <style type="text/css">
        html { height: 100% }
        body { height: 100%; margin: 0; padding: 0 }
        #map_canvas { height: 100% }
      </style>
        <script type="text/javascript">
        src="https://maps.googleapis.com/maps/api/js?key=AIzaSyAIbK8zw8fqY&sensor=false">
      </script>
      <script type="text/javascript">
        function initialize() {
        var mapOptions = {
          mapTypeId: google.maps.MapTypeId.ROADMAP
        };
        var map = new google.maps.Map(document.getElementById("map_canvas"), mapOptions);
        var georssLayer = new google.maps.KmlLayer('http://waterwatch.org.au/waterwatch_php/all_sites.php');
        georssLayer.setMap(map);
        }
      </script>
    </head>
    <body onload="initialize()">
      <div id="map_canvas" style="width:100%; height:100%"><div param="map" /></div>
    </body>
    </html>
</def>

「未加工の文字列に不正な文字 '&' があります」というエラーが表示されます (maps.googleapis.com リンクのパラメーター セパレーター)。

dryml で & 文字をエスケープするにはどうすればよいですか?

4

0 に答える 0