You can encode and decode the URL using Magento 2 with native functionality.
Using Url Encode, they encode the base64_encode() for URLs encoding using encode() function.
Using Url Decode, they decode the base64_decode() for URLs decoding.
You can encode and decode the URL using Magento 2 with native functionality.
Using Url Encode, they encode the base64_encode() for URLs encoding using encode() function.
Using Url Decode, they decode the base64_decode() for URLs decoding.