title: Swift get content of html from url
body: <pre><code>let myURLString = "https://en.wiktionary.org/wiki/see"
  
      if let myURL = NSURL(string: myURLString) { 
  
  
        let myHTMLString = String(contentsOfURL: myURL, encoding: String.Encoding.utf8)
        print("HTML : \(myHTMLString)")
  
      }
  </code></pre>
  
  <p>And I got printed:</p>
  
  <pre><code>HTML : (https://en.wiktionary.org/wiki/see, Unicode (UTF-8))
  </code></pre>
  
  <p>But instead I need html content.
  What I am doing wrong?</p>
  
  <p><strong>Update:</strong><br>
  As a source for the code I used: <a href="https://stackoverflow.com/questions/26134884/how-to-get-html-source-from-url-with-swift">How To Get HTML source from URL with Swift</a></p>
  
  <p>Please, read my question with more attention, as the result I got text of link, but instead I need text of html page</p>