public class DefaultMarkupModel extends AbstractMarkupModel
MarkupModel
that is appropriate for traditional (X)HTML
markup. Assumes that all tags are lower-case. The majority of elements will be "expanded" (meaning a complete start
and end tag); this is for compatibility with web browsers, especially when the content type of a response indicates
HTML, not true XML. Only the "hr", "br","img", "link", and "meta" tags will be rendered abbreviated (i.e., "lt;img/>").Constructor and Description |
---|
DefaultMarkupModel() |
DefaultMarkupModel(boolean useApostropheForAttributes) |
Modifier and Type | Method and Description |
---|---|
EndTagStyle |
getEndTagStyle(String element)
For a given element, determines how the end tag for the element should be rendered.
|
boolean |
isXML()
Returns false.
|
encode, encodeQuoted, getAttributeQuote
public DefaultMarkupModel()
public DefaultMarkupModel(boolean useApostropheForAttributes)
public EndTagStyle getEndTagStyle(String element)
MarkupModel
public boolean isXML()
5.6.3 - Copyright © 2003-2021 The Apache Software Foundation.