@Test public void resolveXhtmlBody() throws Exception { String html = "<div><p>dsdsds<b><em>test</em></b></p></div>"; Document document = Jsoup.parseBodyFragment("<" + XHTMLBODYROOT + ">" + html + "</" + XHTMLBODYROOT + ">"); Element xhtmlBodyRoot = document.getElementsByTag(XHTMLBODYROOT).first(); System.out.println(xhtmlBodyRoot.html()); Document nwDocument = Jsoup.parseBodyFragment("<" + XHTMLBODYROOT + ">" + html + "</" + XHTMLBODYROOT + ">"); nwDocument.outputSettings().indentAmount(0).prettyPrint(false); Element nwXhtmlBodyRoot = nwDocument.getElementsByTag(XHTMLBODYROOT).first(); System.out.println(nwXhtmlBodyRoot.html()); }
public static String resolveXhtmlBody(final String body, boolean resolveLinks, final LinkResolver linkResolver, final String contextPath) throws ItemNotFoundException, SerializationException { return doReplacement(resolveXhtml(resolveLinks, linkResolver, contextPath, body)); }
RichTextUtils { public static String resolveXhtmlBody(final String body, boolean resolveLinks, final LinkResolver linkResolver, final String contextPath) throws ItemNotFoundException, SerializationException { return doReplacement(resolveXhtml(resolveLinks, linkResolver, contextPath, body)); } }
RichTextUtils { public static String resolveXhtmlBody(final String body, boolean resolveLinks, final LinkResolver linkResolver, final String contextPath) throws ItemNotFoundException, SerializationException { return doReplacement(resolveXhtml(resolveLinks, linkResolver, contextPath, body)); } private  RichTextUtils(); }
RichTextUtils { public static String resolveXhtmlBody(final String body, boolean resolveLinks, final LinkResolver linkResolver, final String contextPath) throws ItemNotFoundException, SerializationException { return doReplacement(resolveXhtml(resolveLinks, linkResolver, contextPath, body)); } private  RichTextUtils(); static String resolveXhtmlBody(final String body, boolean resolveLinks, final LinkResolver linkResolver,
                                          final String contextPath); static void resolveXhtmlField(final XhtmlField xhtmlFields, final boolean resolveLinks, final LinkResolver
            linkResolver, final String contextPath); }
RichTextUtils { public static String resolveXhtmlBody(final String body, boolean resolveLinks, final LinkResolver linkResolver, final String contextPath) throws ItemNotFoundException, SerializationException { return doReplacement(resolveXhtml(resolveLinks, linkResolver, contextPath, body)); } private  RichTextUtils(); static String resolveXhtmlBody(final String body, boolean resolveLinks, final LinkResolver linkResolver,
                                          final String contextPath); static void resolveXhtmlField(final XhtmlField xhtmlFields, final boolean resolveLinks, final LinkResolver
            linkResolver, final String contextPath);  }