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

Method encodeHash

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

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

(final String hash)

Source from the content-addressed store, hash-verified

317 * @return the encoded and escaped hash string
318 */
319 public static String encodeHash(final String hash) {
320 if (hash == null) {
321 return null;
322 }
323 return encode(hash, HASH_ALLOWED_CHARS, UTF_8);
324 }
325
326 /**
327 * Encodes and escapes the specified URI hash string.

Callers 1

getHashMethod · 0.95

Calls 1

encodeMethod · 0.95

Tested by

no test coverage detected