Function sanitizeUrlPart

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

    Parameters

    • urlPart: string

      The URL part to sanitize.

    Returns string

    The sanitized output.