/** * Parses HTML and returns the stripped html. */ protected String html(Document document) { String html = document.getHtml(); html = strip(html); return html; } protected String html1(Document document) {
/** * Reads test file and returns its content optionally stripped. */ protected String read(String filename, boolean strip) throws IOException { String data = FileUtil.readString(new File(testDataRoot, filename)); if (strip) { data = strip(data); } return data; }