如何逃避“&” dryml中的角色?

时间:2013-01-08 05:12:32

标签: ruby-on-rails hobo

我的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>

我收到错误&#34;非法字符&#39;&amp;&#39;在原始字符串&#34; (maps.googleapis.com链接中的参数分隔符。

如何逃避&amp;干涸的角色?

0 个答案:

没有答案