title: How to Load large HTML string in WebView with LoadHTMLString method?
body: <p>I have to load an html string onto the UIWebView with 'LoadHTMLString' method of UIWebView.</p>
  
  <p>Please find the below code.</p>
  
  <pre><code>[wv loadHTMLString:[NSString stringWithFormat:@"&lt;!DOCTYPE html&gt;&lt;html&gt;&lt;head&gt;&lt;meta name=\"viewport\" content=\"initial-scale=1.0, user-scalable=no\"&gt;&lt;meta charset=\"utf-8\"&gt;&lt;title&gt;Traffic layer&lt;/title&gt;&lt;style&gt;html, body, #map-canvas {height: 100%%;margin: 0px;padding: 0px}&lt;/style&gt;&lt;script src=\"https://maps.googleapis.com/maps/api/js?v=3.exp\"&gt;&lt;/script&gt;&lt;script&gt;function initialize() {var myLatlng = new google.maps.LatLng(34.04924594193164, -118.24104309082031);var mapOptions = {zoom: 13,center: myLatlng}var map = new google.maps.Map(document.getElementById('map-canvas'), mapOptiotrafficLayer.setMap(map);}google.maps.event.addDomListener(window, 'load', initialize);&lt;/script&gt;&lt;/head&gt;&lt;body&gt;&lt;div id=\"map-canvas\"&gt;&lt;/div&gt;&lt;/body&gt;&lt;/html&gt;"] baseURL:nil]
  </code></pre>
  
  <p>When I load this, my webview is empty, it is not showing anything.</p>
  
  <p>When I put this code into file with the extension 'html' and load on to the webview it is working fine.</p>
  
  <p>Can any one help me in loading this on to the WebView? Or could any one let me know what is going wrong in this code.</p>