• Sanitizes a key name to ensure it is safe for use in scripting.

    Parameters

    • n: string

      The original key name.

    Returns string

    A sanitized, script-safe key name.