@Test public void asElementHTMLWithoutWrapper() { String html = "test"; Node node = ArticleUtil.asElementHTML(html); assertThat(node).isNotNull().extracting(Node::outerHtml).containsExactly(html); }
static @Nullable Node asElementHTML(String html) { return asElement(html, ArticleUtil::wrapHTML); }
ArticleUtil { static @Nullable Node asElementHTML(String html) { return asElement(html, ArticleUtil::wrapHTML); } }
ArticleUtil { static @Nullable Node asElementHTML(String html) { return asElement(html, ArticleUtil::wrapHTML); } @SuppressWarnings("unused") private  ArticleUtil(); }
ArticleUtil { static @Nullable Node asElementHTML(String html) { return asElement(html, ArticleUtil::wrapHTML); } @SuppressWarnings("unused") private  ArticleUtil(); static TranslatableNodeList replaceNonTranslatableNodeHTML(int prefix,
            String html); static TranslatableNodeList replaceNonTranslatableNodeXML(int prefix,
            String xml); static String generatePlaceholderId(int prefix, int index); static Element generatePlaceholderNode(@NotNull String id); static Document wrapHTML(String html); static Document wrapXML(String html); static List<Node> unwrapAsNodes(@NotNull Element element); static List<Node> unwrapAsElements(@NotNull Element element); static @Nullable Node asElement(String html, Function<String, Element> toElement); static String replacePlaceholderWithNode(
            Map<String, Node> nodeIdMap, String xml, Function<String, Element> toElement); }
ArticleUtil { static @Nullable Node asElementHTML(String html) { return asElement(html, ArticleUtil::wrapHTML); } @SuppressWarnings("unused") private  ArticleUtil(); static TranslatableNodeList replaceNonTranslatableNodeHTML(int prefix,
            String html); static TranslatableNodeList replaceNonTranslatableNodeXML(int prefix,
            String xml); static String generatePlaceholderId(int prefix, int index); static Element generatePlaceholderNode(@NotNull String id); static Document wrapHTML(String html); static Document wrapXML(String html); static List<Node> unwrapAsNodes(@NotNull Element element); static List<Node> unwrapAsElements(@NotNull Element element); static @Nullable Node asElement(String html, Function<String, Element> toElement); static String replacePlaceholderWithNode(
            Map<String, Node> nodeIdMap, String xml, Function<String, Element> toElement);  }