Class VastExtKt
-
- All Implemented Interfaces:
public final class VastExtKt
-
-
Method Summary
-
-
Method Detail
-
sanitize
final static String sanitize(String $self)
Sanitizes a string by trimming whitespace characters and handling null values.
This extension function provides safe string sanitization for VAST XML content, removing leading and trailing whitespace characters and converting null values to empty strings. This is essential for processing VAST XML data which may contain extraneous whitespace that could affect parsing or validation.
The function uses a comprehensive whitespace check that includes all characters with ASCII values less than or equal to space character (32), ensuring thorough cleanup of control characters and whitespace.
- Returns:
The sanitized string with whitespace removed, or empty string if null
-
-
-
-