public class HTML4Encoder extends AbstractCharReplacementEncoder
This encoder is for HTML4 documents. It uses escaping information from Spring's HtmlUtils so that this is compatible with the previous "encodeAsHTML" in older Grails versions.
Modifiers | Name | Description |
---|---|---|
private static class |
HTML4Encoder.StreamingHTMLEncoderHelper |
Calls Spring's HtmlUtils's private method to convert characters to HTML entities. |
Modifiers | Name | Description |
---|---|---|
static CodecIdentifier |
HTML4_CODEC_IDENTIFIER |
|
static java.lang.String |
HTML4_CODEC_NAME |
|
private static java.lang.String |
NULL_MARKER |
|
private static org.apache.commons.logging.Log |
log |
|
java.util.Map<java.lang.Character, java.lang.String> |
replacements |
Fields inherited from class | Fields |
---|---|
class AbstractCharReplacementEncoder |
codecIdentifier |
Constructor and description |
---|
HTML4Encoder
() |
Type Params | Return Type | Name and description |
---|---|---|
|
protected java.lang.String |
escapeCharacter(char ch, char previousChar) |
Methods inherited from class | Name |
---|---|
class AbstractCharReplacementEncoder |
convertToString, createChainingEncodesToWriter, doCharReplacementEncoding, encode, encodeToStream, encodeToWriter, encodeToWriter, escapeCharSequence, escapeCharacter, getCodecIdentifier, isApplyToSafelyEncoded, isSafe, markEncoded |