MCPcopy Create free account
hub / github.com/HtmlUnit/htmlunit / encodeQuery

Method encodeQuery

src/main/java/org/htmlunit/util/UrlUtils.java:332–337  ·  view source on GitHub ↗

Encodes and escapes the specified URI hash string. @param query the query string to encode and escape @return the encoded and escaped hash string

(final String query)

Source from the content-addressed store, hash-verified

330 * @return the encoded and escaped hash string
331 */
332 public static String encodeQuery(final String query) {
333 if (query == null) {
334 return null;
335 }
336 return encode(query, QUERY_ALLOWED_CHARS, UTF_8);
337 }
338
339 /**
340 * Unescapes and decodes the specified string.

Callers 1

setSearchMethod · 0.95

Calls 1

encodeMethod · 0.95

Tested by

no test coverage detected