'Url encoding in yml file

I have a variable in yml file which needs to be encoded into URL so that / is replaced by %2F.

Sample code i am using:

"{{Variable}}"


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source