title: How do I display more JSON items in HTML using WebKit?
body: <p>I am building a news app using SwiftyJSON and I have been able to pull the data properly. I am also able to display the title and description in a tableView. However, when I go to the Detail View I want to be able to display the full article summary from the feed. </p>
  
  <p>Here are the feed elements:</p>
  
  <pre><code>func parse(json: JSON) {
          for article in json["articles"].arrayValue {
              let title = article["title"].stringValue
              let author = article["author"].stringValue
              let date = article["publishedAt"].stringValue
              let image = article["urlToImage"].stringValue
              let description = article["description"].stringValue
  
              let obj = ["title": title, "author": author, "date": date, "image": image, "description": description, ]
              news.append(obj)
  
          }
  </code></pre>
  
  <p>I am sending the data to the Detail View Controller as follows:</p>
  
  <pre><code>override func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {
          let vc = DetailViewController()
          vc.articleSummary = news[indexPath.row]
          navigationController?.pushViewController(vc, animated: true)
  }
  </code></pre>
  
  <p>Then on the Detail View Controller here is the code. The commented items are items that I would like to add to the display:</p>
  
  <pre><code>import UIKit
  import WebKit
  
  class DetailViewController: UIViewController {
  
      var webView: WKWebView!
      var articleSummary: [String: String]!
  
      override func loadView() {
          webView = WKWebView()
          view = webView
      }
  
      override func viewDidLoad() {
          super.viewDidLoad()
  
          guard articleSummary != nil else { return }
  
          if let description = articleSummary["description"] {
              var html = "&lt;html&gt;"
              html += "&lt;head&gt;"
              html += "&lt;meta name=\"viewport\" content=\"width=device-width, initial-scale=1\"&gt;"
              html += "&lt;style&gt; body { font-size: 150%; } &lt;/style&gt;"
              html += "&lt;/head&gt;"
              html += "&lt;body&gt;"
           // html += &lt;h1&gt;title&lt;/h1&gt;
           // html += &lt;h4&gt;author&lt;/h4&gt;
           // html += &lt;p&gt;date&lt;/p&gt;
           // html += &lt;img src="image" alt="" /&gt;
              html += description
              html += "&lt;/body&gt;"
              html += "&lt;/html&gt;"
              webView.loadHTMLString(html, baseURL: nil)
          }
      }
  
  }
  </code></pre>