title: How to display htmlcontent string in web browser control in windows phone 8?
body: <p>I have web browser control in which I am displaying Htmlcontent using javascript and NavigateToString() methods. It was working fine unless table tag was added at server from where I am getting the Htmlcontent. I have tried below code so far</p>
  
  <pre><code>string notifyJS = @"&lt;script type='text/javascript' language='javascript'&gt;
                              window.onload = function() {
                                  var links = document.getElementsByTagName('a');
                                  for(var i=0;i&lt;links.length;i++) {
                                      links[i].onclick = function() {
                                          window.external.Notify(this.href);
                                      }
                                  }
                              }
                          &lt;/script&gt;";
  
  
          var htmlContent = string.Format("&lt;html&gt;&lt;head&gt;{2}&lt;/head&gt;" +
                                                   "&lt;body style=\"margin:25px 25px 75px;padding:0px;background-color:{1};\" " +
                                                   "{0}&lt;/body&gt;&lt;/html&gt;",
                                                   _selectedTab.HTML_CONTENT,
                                                   _selectedTab.TAB_BG_COLOR,
                                                   notifyJS);
          //var htmlContent = _selectedTab.HTML_CONTENT;
  
          HtmlContentView.NavigateToString(htmlContent);
          HtmlContentView.ScriptNotify += HtmlContentView_ScriptNotify;
          HtmlContentView.Navigating += HtmlContentView_Navigating;
          HtmlContentView.LoadCompleted += HtmlContentView_LoadCompleted;
      }
  
      void HtmlContentView_LoadCompleted(object sender, NavigationEventArgs e)
      {
          HtmlContentView.InvokeScript("execScript", new string[] { "document.onselectstart=function(){return false;};document.ondragstart=function(){return false;}" });
  
      }
  
      void HtmlContentView_Navigating(object sender, NavigatingEventArgs e)
      {
          e.Cancel = true;
      }
  
      void HtmlContentView_ScriptNotify(object sender, NotifyEventArgs e)
      {
          if (!string.IsNullOrEmpty(e.Value))
          {
              string href = e.Value.ToLower();
              if (href.StartsWith("mailto:"))
              {
                  EmailComposeTask email = new EmailComposeTask();
                  email.To = href.Replace("mailto:", string.Empty);
                  email.Show();
              }
              else if (href.StartsWith("tel:"))
              {
                  PhoneCallTask call = new PhoneCallTask();
                  call.PhoneNumber = href.Replace("tel:", string.Empty);
                  call.Show();
              }
              else
              {
                  WebBrowserTask browserTask = new WebBrowserTask();
                  browserTask.Uri = new Uri(e.Value);
                  browserTask.Show();
  
              }
          }
      }
  </code></pre>
  
  <p>Please can anyone suggest why table tag is not properly recognized? I checked the same in Android and it was working absolutely fine.</p>
  
  <p>Please anyone suggest a solution.</p>