Kanna
Kanna copied to clipboard
Moving from SwiftSoup
So I want to use this library instead of SwiftSoup as it seems fast as ****
SwiftSoup has a function to remove all tags from a document and just leave the content doc.body()?.text()
Does this library have a similar feature?
A few years too late 😜. Just providing an example from a string
let html = "<html><body><h1>GitHub</h1></body></html>"
if let htmlDoc = HTML(html: html, encoding: .utf8) {
onlyText = htmlDoc.text
}
Might want to close this to make managing this library easier for you? @tid-kijyun