Class SimpleHTMLEncoder
Simple IEncoder implementation to escape text for HTML output
Inheritance
System.Object
SimpleHTMLEncoder
Implements
Namespace: Lucene.Net.Search.Highlight
Assembly: Lucene.Net.Highlighter.dll
Syntax
public class SimpleHTMLEncoder : object, IEncoder
Constructors
| Improve this Doc View SourceSimpleHTMLEncoder()
Declaration
public SimpleHTMLEncoder()
Methods
| Improve this Doc View SourceEncodeText(String)
Declaration
public string EncodeText(string originalText)
Parameters
Type | Name | Description |
---|---|---|
System.String | originalText |
Returns
Type | Description |
---|---|
System.String |
HtmlEncode(String)
Encode string into HTML
Declaration
public static string HtmlEncode(string plainText)
Parameters
Type | Name | Description |
---|---|---|
System.String | plainText |
Returns
Type | Description |
---|---|
System.String |