public abstract class AbstractMarkupModel extends Object implements MarkupModel
Modifier | Constructor and Description |
---|---|
protected |
AbstractMarkupModel(boolean useApostropheForAttributes) |
Modifier and Type | Method and Description |
---|---|
String |
encode(String content)
Passes all characters but '<', '>' and '&' through unchanged.
|
void |
encodeQuoted(String content,
StringBuilder builder)
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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getEndTagStyle, isXML
protected AbstractMarkupModel(boolean useApostropheForAttributes)
public char getAttributeQuote()
MarkupModel
getAttributeQuote
in interface MarkupModel
public String encode(String content)
encode
in interface MarkupModel
content
- to be filteredpublic void encodeQuoted(String content, StringBuilder builder)
MarkupModel
encodeQuoted
in interface MarkupModel
content
- to be filteredbuilder
- to receive the filtered content${project.version} - Copyright © 2003-2015 The Apache Software Foundation.