@Test public void testParseContentInput() throws Exception { Assert.assertNotNull(pdfStreamResult); final Document doc = pdfStreamResult .parseContent("<form><input type='text' name='name'></form>"); Assert.assertNotNull(doc); Assert.assertEquals( "<html><head></head><body><form><inputtype=\"text\"name=\"name\"/></form></body></html>", StringUtils.deleteWhitespace(doc.html())); }
Document parseContent(final String content) { Document document = Jsoup.parse(content); document.outputSettings().escapeMode(EscapeMode.xhtml); document.outputSettings().syntax(Document.OutputSettings.Syntax.xml); document.select("script").remove(); return document; }
PdfStreamResult extends StrutsResultSupport { Document parseContent(final String content) { Document document = Jsoup.parse(content); document.outputSettings().escapeMode(EscapeMode.xhtml); document.outputSettings().syntax(Document.OutputSettings.Syntax.xml); document.select("script").remove(); return document; } }
PdfStreamResult extends StrutsResultSupport { Document parseContent(final String content) { Document document = Jsoup.parse(content); document.outputSettings().escapeMode(EscapeMode.xhtml); document.outputSettings().syntax(Document.OutputSettings.Syntax.xml); document.select("script").remove(); return document; }  }
PdfStreamResult extends StrutsResultSupport { Document parseContent(final String content) { Document document = Jsoup.parse(content); document.outputSettings().escapeMode(EscapeMode.xhtml); document.outputSettings().syntax(Document.OutputSettings.Syntax.xml); document.select("script").remove(); return document; }  void setCssPaths(final String cssPaths); void setRenderer(String renderer); void setContentDisposition(String contentDisposition); void setAllowCaching(boolean allowCaching); }
PdfStreamResult extends StrutsResultSupport { Document parseContent(final String content) { Document document = Jsoup.parse(content); document.outputSettings().escapeMode(EscapeMode.xhtml); document.outputSettings().syntax(Document.OutputSettings.Syntax.xml); document.select("script").remove(); return document; }  void setCssPaths(final String cssPaths); void setRenderer(String renderer); void setContentDisposition(String contentDisposition); void setAllowCaching(boolean allowCaching);  }