Class SimpleHTMLEncoder
java.lang.Object
org.apache.lucene.search.highlight.SimpleHTMLEncoder
- All Implemented Interfaces:
Encoder
Simple
Encoder
implementation to escape text for HTML output-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionencodeText
(String originalText) static final String
htmlEncode
(String plainText) Encode string into HTML
-
Constructor Details
-
SimpleHTMLEncoder
public SimpleHTMLEncoder()
-
-
Method Details
-
encodeText
- Specified by:
encodeText
in interfaceEncoder
- Parameters:
originalText
- The section of text being output
-
htmlEncode
Encode string into HTML
-