Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

import org.jsoup.nodes.Document;
import org.jsoup.nodes.Element;

public class Main {
    private static String parseCardContent(Document doc) {
        try {
            Element summaryEl = doc.select("div[class=card-summary-content]").get(0);
            summaryEl.select("sup").remove();

            return summaryEl.text();
        } catch (Exception e) {
            e.printStackTrace();
        }
        return null;
    }
}