public static sanitize(name as String) as String:
Replaces characters outside the conservative ASCII XML name alphabet with underscores. This helper does not validate namespace bindings.
| Parameter | Description |
|---|---|
name | Name to sanitize, or null. |
An independent sanitized string, or "value" for null/empty input.
print(XMLNames.sanitize("first name")) # first_name