public static void encodeHtmlText(CharSequence src, int from, int end, Appendable dst) throws IOException, IllegalArgumentException { encodeHtml(src, from, end, dst); }
encodeHtmlText(data, 0, data.length(), dst); } else if (child instanceof org.w3c.dom.Element) { encodeHtml((org.w3c.dom.Element)child, dst);
public static void encodeHtmlText(CharSequence src, int from, int end, Appendable dst) throws IOException, IllegalArgumentException { encodeHtml(src, from, end, dst); }
encodeHtmlText(data, 0, data.length(), dst); } else if (child instanceof org.w3c.dom.Element) { encodeHtml((org.w3c.dom.Element)child, dst);
public static void encodeHtmlAttribute(CharSequence src, int from, int end, Appendable dst) throws IOException, IllegalArgumentException { encodeHtml(src, from, end, dst); }
public static void encodeHtmlAttribute(CharSequence src, int from, int end, Appendable dst) throws IOException, IllegalArgumentException { encodeHtml(src, from, end, dst); }
private void assertSerialization(String expectedMarkup, String markup) throws Exception { Element elt = DocumentBuilderFactory.newInstance().newDocumentBuilder() .parse(new InputSource(new StringReader(markup))).getDocumentElement(); StringWriter writer = new StringWriter(); Tools.encodeHtml(elt, writer); assertEquals(expectedMarkup, writer.toString()); }
private void assertSerialization(String expectedMarkup, String markup) throws Exception { Element elt = DocumentBuilderFactory.newInstance().newDocumentBuilder() .parse(new InputSource(new StringReader(markup))).getDocumentElement(); StringWriter writer = new StringWriter(); Tools.encodeHtml(elt, writer); assertEquals(expectedMarkup, writer.toString()); }
try { StringBuilder buffer = new StringBuilder(); Tools.encodeHtml(headerTag, buffer); stream.provide(Chunk.create(buffer));
try { StringBuilder buffer = new StringBuilder(); Tools.encodeHtml(headerTag, buffer); stream.provide(Chunk.create(buffer));