Package org.grails.encoder.impl
Class HTML4Codec
java.lang.Object
org.grails.encoder.impl.HTML4Codec
- All Implemented Interfaces:
CodecFactory
Encodes and decodes strings to and from HTML. It uses escaping information
from Spring's HtmlUtils so that this is compatible with the previous
"encodeAsHTML" in older Grails versions.
- Since:
- 2.3
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the decoder instance.Gets the encoder instance.
-
Constructor Details
-
HTML4Codec
public HTML4Codec()
-
-
Method Details
-
getEncoder
Description copied from interface:CodecFactoryGets the encoder instance.- Specified by:
getEncoderin interfaceCodecFactory- Returns:
- the encoder
-
getDecoder
Description copied from interface:CodecFactoryGets the decoder instance.- Specified by:
getDecoderin interfaceCodecFactory- Returns:
- the decoder
-