private String getText(BufferedReader reader) {
        String finishedText = "";
        String s = "";
        StringBuilder sb = new StringBuilder();
        while (s != null && !s.contains("<div class=\"csc-textpic-text\">")) {  //go to the text passage in the html-code
            try {
                s = reader.readLine();
            } catch (Exception e) {
                return null;
            }
        }
        try {
            while ((s = reader.readLine()) != null && !s.contains("</div>")) {  //read all until the end of the text passage
                if (s.contains("www") | s.contains("<a>") | s.contains("<i>") | s.contains("<td ")) {
                    continue;
                }
                s = s.replaceAll("\t", "");                                     //delete all tabulators
                s = s.replaceAll("<(\"[^\"]*\"|'[^']*'|[^'\">])*>", "");        //delete all html-tags
                s = s.replaceAll("&nbsp;", "");                                 //delete "&nbsp;"
                s = s.replaceAll(".+[^(. )]$", "");                             //delete every codeline that does not conclude with a full stop
                s = s.replaceAll("„", "");                                      //delete lower "
                s = s.replaceAll("“", "");                                      //delete upper "
                s = s.replaceAll("&amp;", "&");                                 //replace amp with &
                s = s.replaceAll("&quot;", "");                                 //delete &quot;

                s = replaceSpecPattern(s, "\\d+\\.", "\\.", "#");               //replace all . in dates
                s = replaceSpecPattern(s, " [a-zA-Z]{1,3}\\.", "\\.", "#");     //replace all . in abreviations
                s = replaceSpecPattern(s, "#[a-zA-Z]{1,3}\\.", "\\.", "#");     //replace all . in janky abbreviations
                s = replaceSpecPattern(s, "Prof\\.", "\\.", "#");               //mark some abbreviations longer than 3 letters
                s = replaceSpecPattern(s, "Dipl\\.", "\\.", "#");
                s = replaceSpecPattern(s, "Angl\\.", "\\.", "#");
                s = replaceSpecPattern(s, "bspw\\.", "\\.", "#");
                s = replaceSpecPattern(s, "evtl\\.", "\\.", "#");

                s = s.trim();
                sb.append(s);                                                   //append to the stringbuilder
            }
        } catch (Exception e) {
            return null;
        }

        finishedText = sb.toString();                                           //make a string out of the stringbuilder
        try {
            reader.close();
        } catch (IOException ex) {
        }
        return finishedText;
    }