• Sanitizes part of a URL by replacing non-word content with a '-'.

    Returns

    The sanitized output.

    Parameters

    • urlPart: string

      The URL part to sanitize.

    Returns string