Example usage for org.jsoup.nodes Document hasSameValue

List of usage examples for org.jsoup.nodes Document hasSameValue

Introduction

In this page you can find the example usage for org.jsoup.nodes Document hasSameValue.

Prototype

public boolean hasSameValue(Object o) 

Source Link

Document

Check if this node is has the same content as another node.

Usage

From source file:org.sahli.asciidoc.confluence.publisher.client.ConfluencePublisher.java

private static boolean notSameHtmlContent(String htmlContent1, String htmlContent2) {
    Document document1 = parse(htmlContent1, "UTF-8", xmlParser());
    Document document2 = parse(htmlContent2, "UTF-8", xmlParser());

    return !document1.hasSameValue(document2);
}