pub fn decode_uri(encoded: &str) -> Result<JsString, JsValue>
The decodeURI() function decodes a Uniform Resource Identifier (URI) previously created by encodeURI or by a similar routine.
decodeURI()
encodeURI
MDN documentation