mimekit-ts - v1.0.0
    Preparing search index...

    Function htmlEncode

    Encode HTML character data.

    • Encode HTML character data.

      Parameters

      • output: TextWriter

        The text writer to output the result.

      • data: string

        The character data to encode.

      Returns void

      output or data is null or undefined.

    • Encode a range of HTML character data.

      Parameters

      • output: TextWriter

        The text writer to output the result.

      • data: string

        The character data to encode.

      • startIndex: number

        The starting index of the character data.

      • count: number

        The number of characters in the data.

      Returns void

      output or data is null or undefined.

      startIndex and count do not specify a valid range.

    • Encode HTML character data.

      Parameters

      • data: string

        The character data to encode.

      Returns string

      The encoded character data.

      data is null or undefined.

    • Encode a range of HTML character data.

      Parameters

      • data: string

        The character data to encode.

      • startIndex: number

        The starting index of the character data.

      • count: number

        The number of characters in the data.

      Returns string

      The encoded character data.

      data is null or undefined.

      startIndex and count do not specify a valid range.