Class SimpleHTMLEncoder
Simple IEncoder implementation to escape text for HTML output
Inheritance
System.Object
SimpleHTMLEncoder
Implements
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Lucene.Net.Search.Highlight
Assembly: Lucene.Net.Highlighter.dll
Syntax
public class SimpleHTMLEncoder : 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 |