title: HTML string to formatted text in Swift
body: <p>Hello I have a string that I want to write to a text document in Swift. Because the text document has line breaks, however, the string seems to be in HTML format.
  Here is what I want to do:</p>
  
  <pre><code>    //Covert str1 to str2
      var str1 = "1&lt;div&gt;2&lt;/div&gt;&lt;div&gt;3&lt;/div&gt;&lt;div&gt;4&lt;/div&gt;"
      var str2 = "1        
                  2
                  3
                  4" //Text document will have text that looks like this (With line breaks)
  </code></pre>