简体   繁体   中英

How to convert non-well formed html to xhtml on iOS

Does anyone know how to convert non-well formed html to XHTML/XML on iOS?

I want to use xpath to parse an HTML page, but is not a well formed XML/XHTML.

Do you really need to convert it, or just use xpath? https://github.com/topfunky/hpple or some other tools can parse non-well-formed html.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM