Closed sgbasaraner closed 6 years ago
What do you mean?
https://github.com/mozilla/readability
Something like this. A smart text/article detector built into SwiftSoup.
The answer is i think is yes, looking quickly what it does.
Many function of Readability.js are based to CSS Selectors like getElementsByTagName
, setAttribute
, removeAttribute
or getElementsByTagName
and others.
these functions are implemented in SwiftSoup to select o manipulate the document.
So you should make a porting of Readability.js and use SwiftSoup to manipolate and select elements but I can not know if there are any features you need.
SwiftSoup does what JSDOMParser.js does
If I get to build a clone of readability using SwiftSoup, would you want it to be included in SwiftSoup itself? I can come up with a PR if that's the case. The usage could be something like
SwiftSoup.parse(html).smartText()
What does this library do?
Closed due to inactivity, if necessary re-open.
Is it possible for SwiftSoup to parse HTML like Safari's or Firefox's Reader View does?