|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Object org.thymeleaf.util.DOMUtils
public final class DOMUtils
Method Summary | |
---|---|
static char[] |
escapeXml(char[] ch,
boolean escapeQuotes)
Deprecated. This method has been deprecated in 2.1.3 and is no longer an adequate way to obtain escaped HTML code. The whole of the escaping mechanism defined on top of these DOMUtils escape/unescape methods had too many drawbacks and issues, so it was completely replaced by the Unbescape library. Will be removed in 3.0. |
static String |
escapeXml(String str,
boolean escapeQuotes)
Deprecated. This method has been deprecated in 2.1.3 and is no longer an adequate way to obtain escaped HTML code. The whole of the escaping mechanism defined on top of these DOMUtils escape/unescape methods had too many drawbacks and issues, so it was completely replaced by the Unbescape library. Will be removed in 3.0. |
static List<Node> |
extractFragmentByElementAndAttributeValue(List<Node> rootNodes,
String elementName,
String attributeName,
String attributeValue)
|
static Document |
getDOMFor(Configuration configuration,
Reader source,
ITemplateParser parser)
|
static Document |
getDOMFor(Reader source,
ITemplateParser parser)
|
static Document |
getHtml5DOMFor(Reader source)
|
static String |
getHtml5For(Node node)
|
static Document |
getLegacyHTML5DOMFor(Reader source)
|
static String |
getOutputFor(Arguments arguments,
Node node,
AbstractGeneralTemplateWriter templateWriter)
|
static String |
getOutputFor(Node node,
AbstractGeneralTemplateWriter templateWriter,
String templateMode)
This method is for testing purposes only! It creates mock configuration, template and resource resolution artifacts, etc. |
static Document |
getXhtmlDOMFor(Reader source)
|
static String |
getXhtmlFor(Node node)
|
static Document |
getXmlDOMFor(Reader source)
|
static String |
getXmlFor(Node node)
|
static String |
unescapeXml(String str,
boolean unescapeQuotes)
Deprecated. This method has been deprecated in 2.1.3 and is no longer an adequate way to obtain unescaped HTML code. The whole of the escaping mechanism defined on top of these DOMUtils escape/unescape methods had too many drawbacks and issues, so it was completely replaced by the Unbescape library. Will be removed in 3.0. |
static void |
writeXmlEscaped(char[] buffer,
Writer writer,
boolean escapeQuotes)
Deprecated. This method has been deprecated in 2.1.3 and is no longer an adequate way to obtain escaped HTML code. The whole of the escaping mechanism defined on top of these DOMUtils escape/unescape methods had too many drawbacks and issues, so it was completely replaced by the Unbescape library. Will be removed in 3.0. |
static void |
writeXmlEscaped(String buffer,
Writer writer,
boolean escapeQuotes)
Deprecated. This method has been deprecated in 2.1.3 and is no longer an adequate way to obtain escaped HTML code. The whole of the escaping mechanism defined on top of these DOMUtils escape/unescape methods had too many drawbacks and issues, so it was completely replaced by the Unbescape library. Will be removed in 3.0. |
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static List<Node> extractFragmentByElementAndAttributeValue(List<Node> rootNodes, String elementName, String attributeName, String attributeValue)
@Deprecated public static char[] escapeXml(char[] ch, boolean escapeQuotes) throws IOException
IOException
@Deprecated public static String escapeXml(String str, boolean escapeQuotes) throws IOException
IOException
@Deprecated public static void writeXmlEscaped(String buffer, Writer writer, boolean escapeQuotes) throws IOException
IOException
@Deprecated public static void writeXmlEscaped(char[] buffer, Writer writer, boolean escapeQuotes) throws IOException
IOException
@Deprecated public static String unescapeXml(String str, boolean unescapeQuotes)
public static String getXmlFor(Node node)
public static String getXhtmlFor(Node node)
public static String getHtml5For(Node node)
public static String getOutputFor(Node node, AbstractGeneralTemplateWriter templateWriter, String templateMode)
This method is for testing purposes only! It creates mock configuration, template and resource resolution artifacts, etc. Its usage during normal operation could heavily affect performance.
node
- the node which output is to be computedtemplateWriter
- the template writter to be used for creating the output
public static String getOutputFor(Arguments arguments, Node node, AbstractGeneralTemplateWriter templateWriter)
public static Document getHtml5DOMFor(Reader source)
public static Document getLegacyHTML5DOMFor(Reader source)
public static Document getXmlDOMFor(Reader source)
public static Document getXhtmlDOMFor(Reader source)
public static Document getDOMFor(Reader source, ITemplateParser parser)
public static Document getDOMFor(Configuration configuration, Reader source, ITemplateParser parser)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |