Encodes and escapes the specified URI anchor string. @param anchor the anchor string to encode and escape @return the encoded and escaped anchor string
(final String anchor)
| 304 | * @return the encoded and escaped anchor string |
| 305 | */ |
| 306 | public static String encodeAnchor(final String anchor) { |
| 307 | if (anchor == null) { |
| 308 | return null; |
| 309 | } |
| 310 | return encode(anchor, ANCHOR_ALLOWED_CHARS, UTF_8); |
| 311 | } |
| 312 | |
| 313 | /** |
| 314 | * Encodes and escapes the specified URI hash string. |
no test coverage detected