Function encodeEntities

  • Encodes special characters in a string to their corresponding HTML entities.

    Parameters

    • input: string

      The string to encode.

    • truncateWhitespace: boolean = false

      Whether to truncate whitespace.

    Returns string

    The encoded string.

Generated using TypeDoc