public final class UILinkUtil extends Object
| Constructor and Description |
|---|
UILinkUtil() |
| Modifier and Type | Method and Description |
|---|---|
static String |
encodeURI(String input)
Encode URI of text by UTF-8
Example: Input: https://google.com
Output: https%3A%2F%2Fgoogle.com
|
static boolean |
isImageLink(String link)
Checks if a provided link is am image link.
|
static String |
simpleEscapeHtml(String input)
Simple escape HTML tags
Example: Input: <a herf=\"abc.com\">test</a>
Output: <a herf="abc.com">test</a>
|
public static boolean isImageLink(String link)
link - the provided linkpublic static String simpleEscapeHtml(String input)
input - The text inputCopyright © 2003–2020 eXo Platform SAS. All rights reserved.