Function url_encode
Source pub fn url_encode(input: &str) -> String
Expand description
Encodes a string using URL encoding
§Arguments
input - The string to encode
§Returns
- String containing the URL-encoded input
§Examples
use subconverter_rs::utils::url::url_encode;
let encoded = url_encode("Hello World!");
assert_eq!(encoded, "Hello%20World%21");