Testing SwiftSoup on Ipad Swift Playgrounds
How to Install SwiftSoup package in Swift Playgrounds on iPad How to Use SwiftSoup in Swift Playgrounds on iPad Introduction If you want to parse HTML in Swift Playgrounds on iPad , you can use SwiftSoup , a powerful Swift library for handling HTML. It provides a very convenient API for extracting and manipulating data, using the best of DOM, CSS, and jQuery-like methods. SwiftSoup implements the WHATWG HTML5 specification, and parses HTML to the same DOM as modern browsers do. Scrape and parse HTML from a URL, file, or string. Find and extract data, using DOM traversal or CSS selectors. Manipulate the HTML elements, attributes, and text. Clean user-submitted content against a safe white-list, to prevent XSS attacks Output tidy HTML SwiftSoup is designed to deal with all varieties of HTML found in the wild; from pristine and validating, to invalid tag-soup; SwiftSoup will create a sensib...