Jsoup v1.5.2 publishes a Java HTML parser

Source: Internet
Author: User
Keywords Jsoup java parser a
Tags .url address aliyun api can directly content data html

Jsoup is a Java HTML parser that can directly parse a URL address, HTML text content. It is much more convenient and lighter than the htmlhttp://www.aliyun.com/zixun/aggregation/33959.html ">parser". Syntax is similar to jquery.

It provides a very labor-saving API for fetching and manipulating data through dom,css and jquery-like operations.

This is a minor release, which is primarily corrects a regression bug where the content-type of a document retrieved using Jsoup.connect (String URL) May is correctly detected if specified in a meta tag.

Fixes and improvements

· Fixed issue with selector parser where some boolean and + OR combined queries (E.G.META[HTTP-EQUIV), Meta[content]) were Parsed incorrectly as OR only queries (e.g. former as meta, [HTTP-EQUIV], meta[content])
· Fixed issue where a content-type specified in a META tag is reliably detected, due to the adjective.
· Updated Element.text () and Element.owntext () methods to ensure <br> tags output as whitespace.
· Tweaked element outer HTML method to not generate initial newline on the-i-output element.

Download Address:

Http://jsoup.org/packages/jsoup-1.5.2.jar
Http://jsoup.org/packages/jsoup-1.5.2-sources.jar
Http://jsoup.org/packages/jsoup-1.5.2-javadoc.jar

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.