This custom command validates and sanitizes a given URL string, ensuring it is well-formed and safe for use. It trims any whitespace, validates the URL format, and returns a sanitized version as a string. If the input is invalid, it throws an error with a descriptive message.
How to configure and use this Custom Command :

1) Pass a raw URL to sanitize.
Watch Video Demo :