Created
April 3, 2017 15:33
-
-
Save scinfu/0017b477cc642a4371d72313b0a2a995 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
do{ | |
let html = "<html><head><title>First parse</title></head>" | |
+ "<body><p>Parsed HTML into a doc.</p></body></html>" | |
let doc: Document = try SwiftSoup.parse(html) | |
return try doc.text() | |
}catch Exception.Error(let type, let message){ | |
print(message) | |
}catch{ | |
print("error") | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment