The encodeURI function, encodeURI Component function, can encode strings as URI components. Its return value is a copy of the URI string, in which some characters will be replaced by hexadecimal escape sequences