Function mung::decode_rfc1738 [] [src]

pub fn decode_rfc1738<'a>(s: &'a str) -> Cow<'a, str>

Decodes URL character sequences that are percentage escaped (%25) into their UTF-8 form See: Uniform Resource Locators (URL) https://tools.ietf.org/html/rfc1738#section-2.2

Examples

Can be called with &' str

use mung::decode_rfc1738;
let title = decode_rfc1738( "%25" );

or String

use mung::decode_rfc1738;
let incoming_html = "/end_point/%3Fsource%3D%2Fdata%20here".to_string( );
let title = decode_rfc1738( &incoming_html );