Fork me on GitHub
  • API

    Show / Hide Table of Contents

    Class SimpleHTMLEncoder

    Simple IEncoder implementation to escape text for HTML output

    Inheritance
    object
    SimpleHTMLEncoder
    Implements
    IEncoder
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    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

    Implements

    IEncoder
    Back to top Copyright © 2024 The Apache Software Foundation, Licensed under the Apache License, Version 2.0
    Apache Lucene.Net, Lucene.Net, Apache, the Apache feather logo, and the Apache Lucene.Net project logo are trademarks of The Apache Software Foundation.
    All other marks mentioned may be trademarks or registered trademarks of their respective owners.