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)
| 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. |