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

Help with decoding hexadecimal strings in HTML #190

Closed SwapnanilDhol closed 3 years ago

SwapnanilDhol commented 3 years ago

\x3Cstyle\x3E\x0A\x20\x20\x20.mainDiv\x0A\x20\x20\

I have a string like that being returned in from the HTML I'm trying to parse. Is there a way to convert that into HTML syntax using this library?

Thank you

MuhammedZakir commented 3 years ago

I don't think so. You will probably have to write a function which converts hexadecimal string before parsing.