title: How to parse html table data to array of string in swift?
body: <p>I'm developing an iOS app in which I need to parse HTML from a link with the swiftsoup library. I have done it. But it shows all the table data as a string. I need to get separate data which should be stored in separate arrays.</p>
  
  <p>Here is the table:</p>
  
  <pre><code>        &lt;table width="880" border="1" cellspacing="0" cellpadding="0"&gt;
        &lt;tr&gt;
          &lt;td width="81"&gt;&lt;strong&gt;Trip Name &lt;/strong&gt;&lt;/td&gt;
          &lt;td width="159"&gt;&lt;div align="center"&gt;&lt;strong&gt;Starting Time from Campus &lt;/strong&gt;&lt;/div&gt;&lt;/td&gt;
          &lt;td width="186"&gt;&lt;div align="center"&gt;&lt;strong&gt;Starting Spot &amp;amp; Time &lt;/strong&gt;&lt;/div&gt;&lt;/td&gt;
          &lt;td width="444"&gt;&lt;strong&gt;Remarks&lt;/strong&gt;&lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
          &lt;td&gt;&lt;div align="center"&gt;Normal-1&lt;/div&gt;&lt;/td&gt;
          &lt;td&gt;&lt;div align="center"&gt;6:30 AM &lt;/div&gt;&lt;/td&gt;
          &lt;td&gt;Rupsha, 7:20 AM &lt;/td&gt;
          &lt;td&gt;Will back via Royalmore &amp;amp; Ferighat  &lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
          &lt;td&gt;&lt;div align="center"&gt;Normal-1&lt;/div&gt;&lt;/td&gt;
          &lt;td&gt;&lt;div align="center"&gt;6:45 AM &lt;/div&gt;&lt;/td&gt;
          &lt;td&gt;Moylapota, 7:25 AM &lt;/td&gt;
          &lt;td&gt;Will back via Shibbari - Sonadangha &lt;/td&gt;
        &lt;/tr&gt;
  
  
      &lt;/table&gt;
  </code></pre>
  
  <p>And I have done to parse a string like
  Trip Name Starting Time from Campus Starting Spot &amp; Time Remarks Normal-1</p>
  
  <p>The code I've used :</p>
  
  <pre><code>let doc: Document = try! SwiftSoup.parse(html)
  
  for element: Element in try! doc.select("table[width=880]")
  {
      let linkText : String = try! element.text();
      print(linkText)
  }
  </code></pre>
  
  <p>The Normal-1, 6:30AM, 7:20AM , Will back via Royalmore &amp; Ferighat will be stored 4 separate array.</p>