Class SimpleHTMLEncoder
Simple IEncoder implementation to escape text for HTML output
Implements
Inherited Members
Namespace: Lucene.Net.Search.Highlight
Assembly: Lucene.Net.Highlighter.dll
Syntax
public class SimpleHTMLEncoder : IEncoder
Constructors
SimpleHTMLEncoder()
Simple IEncoder implementation to escape text for HTML output
Declaration
public SimpleHTMLEncoder()
Methods
EncodeText(string)
Simple IEncoder implementation to escape text for HTML output
Declaration
public string EncodeText(string originalText)
Parameters
Type | Name | Description |
---|---|---|
string | originalText | The section of text being output |
Returns
Type | Description |
---|---|
string |
HtmlEncode(string)
Encode string into HTML
Declaration
public static string HtmlEncode(string plainText)
Parameters
Type | Name | Description |
---|---|---|
string | plainText |
Returns
Type | Description |
---|---|
string |