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, waitgetEndTagStyle, isXMLprotected AbstractMarkupModel(boolean useApostropheForAttributes)
public char getAttributeQuote()
MarkupModelgetAttributeQuote in interface MarkupModelpublic String encode(String content)
encode in interface MarkupModelcontent - to be filteredpublic void encodeQuoted(String content, StringBuilder builder)
MarkupModelencodeQuoted in interface MarkupModelcontent - to be filteredbuilder - to receive the filtered content5.6.4 - Copyright © 2003-2021 The Apache Software Foundation.