scinfu / SwiftSoup

SwiftSoup: Pure Swift HTML Parser, with best of DOM, CSS, and jquery (Supports Linux, iOS, Mac, tvOS, watchOS)
https://scinfu.github.io/SwiftSoup/
MIT License
4.52k stars 345 forks source link

The class name matching includes the quotation marks #164

Closed albertovecina closed 2 years ago

albertovecina commented 4 years ago

Methods like getElementsByClass or hasClass are including the quotation mark in the matching, so I have to write this kind of code:

try document.getElementsByClass("\\"description\\"")

Is this the expected behaviour? This is a problem when there are multiple classes indeed.

Thanks.