HTML4Encoder (Grails 5.2.3)

Package: org.grails.encoder.impl

## [Java] Class HTML4Encoder

- org.grails.encoder.impl.HTML4Encoder

-     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.

  Authors:
    Lari Hotari
  Since:
    2.3

- - Inherited fields
    Fields inherited from class | Fields
    --- | ---
    `class AbstractCharReplacementEncoder` | `codecIdentifier`

  - ### Constructor Summary

    Constructors
    Constructor and description
    `HTML4Encoder ()`

  - ### Methods Summary

    Methods
    Type Params | Return Type | Name and description
    --- | --- | ---
    `` | `protected java.lang.String` | `escapeCharacter(char ch, char previousChar)`

  - ### Inherited Methods Summary

    Inherited Methods
    Methods inherited from class | Name
    --- | ---
    `class AbstractCharReplacementEncoder` | `convertToString, createChainingEncodesToWriter, doCharReplacementEncoding, encode, encodeToStream, encodeToWriter, encodeToWriter, escapeCharSequence, escapeCharacter, getCodecIdentifier, isApplyToSafelyEncoded, isSafe, markEncoded`

- - ### Constructor Detail

    - #### public HTML4Encoder()

  - ### Method Detail

    - #### @java.lang.Override protected java.lang.String escapeCharacter(char ch, char previousChar)