• Create a slug out of the given string depending on the selected mode. Invalid characters are converted to hyphens.

    NOTE: This method does not use the comparably sophisticated transliteration mechanism that is employed in the backend. Therefore, it should only be used to suggest slugs that can be overridden by the user.

    Parameters

    • string: string
    • mode: SluggingMode = SluggingMode.ALPHANUMERIC

    Returns string

Generated using TypeDoc v0.24.8