StringSchema.sanitize()method

sanitize(str: string): string

Sanitize the string by removing unwanted characters.

  • Uses multiline sanitization when rows is greater than one, otherwise single-line sanitization.
  • Applies the configured case folding ("upper" or "lower") if set.