public interface MarkupModel
Modifier and Type | Method and Description |
---|---|
String |
encode(String content)
Encodes the characters, converting control characters (such as '<') into corresponding entities (such as
<).
|
void |
encodeQuoted(String content,
StringBuilder buffer)
Encodes the characters into the buffer for use in a quoted value (that is, an attribute value), converting
control characters (such as '<') into corresponding entities (such as <).
|
char |
getAttributeQuote()
What character is used when generating quotes around attribute values? This will be either a single or double
quote.
|
EndTagStyle |
getEndTagStyle(String element)
For a given element, determines how the end tag for the element should be rendered.
|
boolean |
isXML()
Returns true if the document markup is XML, which is used to determine the need for an XML declaration at the
start of the document, and whether CDATA sections are supported.
|
String encode(String content)
content
- to be filteredvoid encodeQuoted(String content, StringBuilder buffer)
content
- to be filteredbuffer
- to receive the filtered contentEndTagStyle getEndTagStyle(String element)
boolean isXML()
char getAttributeQuote()
${project.version} - Copyright © 2003-2015 The Apache Software Foundation.