Function convertToValidClassName

  • Escape the given string such that it can be used as a class name, i.e. hashes and slashes will be replaced.

    Parameters

    • s: string

      the string that should be converted to a valid class name

    Returns string

    the escaped string