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:
//Covert str1 to str2
var str1 = "1<div>2</div><div>3</div><div>4</div>"
var str2 = "1
2
3
4" //Text document will have text that looks like this (With line breaks)