Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save scinfu/0017b477cc642a4371d72313b0a2a995 to your computer and use it in GitHub Desktop.
Save scinfu/0017b477cc642a4371d72313b0a2a995 to your computer and use it in GitHub Desktop.
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