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

    Function htmlAttributeEncode

    Encode an HTML attribute value.

    • Encode an HTML attribute value.

      Parameters

      • output: TextWriter

        The text writer to output the result.

      • value: string

        The attribute value to encode.

      • Optionalquote: string

        The character to use for quoting the attribute value.

      Returns void

      output, value, or quote is invalid.

    • Encode a range of an HTML attribute value.

      Parameters

      • output: TextWriter

        The text writer to output the result.

      • value: string

        The attribute value to encode.

      • startIndex: number

        The starting index of the attribute value.

      • count: number

        The number of characters in the attribute value.

      • Optionalquote: string

        The character to use for quoting the attribute value.

      Returns void

      output, value, or quote is invalid.

      startIndex and count do not specify a valid range.

    • Encode an HTML attribute value.

      Parameters

      • value: string

        The attribute value to encode.

      • Optionalquote: string

        The character to use for quoting the attribute value.

      Returns string

      The encoded attribute value.

      value or quote is invalid.

    • Encode a range of an HTML attribute value.

      Parameters

      • value: string

        The attribute value to encode.

      • startIndex: number

        The starting index of the attribute value.

      • count: number

        The number of characters in the attribute value.

      • Optionalquote: string

        The character to use for quoting the attribute value.

      Returns string

      The encoded attribute value.

      value or quote is invalid.

      startIndex and count do not specify a valid range.