klyn.io.xml.dom.XMLNames.sanitize
method
public static sanitize(name as String) as String:
Description

Replaces characters outside the conservative ASCII XML name alphabet with underscores. This helper does not validate namespace bindings.

Parameters
ParameterDescription
nameName to sanitize, or null.
Returns

An independent sanitized string, or "value" for null/empty input.

Example
print(XMLNames.sanitize("first name"))  # first_name