org.botlibre.sdk.util
Class Utils
java.lang.Object
org.botlibre.sdk.util.Utils
public class Utils
- extends java.lang.Object
Utility class.
Field Summary |
static java.util.regex.Pattern |
emailRegex
|
static java.util.regex.Pattern |
httpRegex
|
static java.util.regex.Pattern |
wwwRegex
|
Constructor Summary |
Utils()
|
Method Summary |
static java.lang.String |
escapeHTML(java.lang.String html)
Replace reserved HTML character with their HTML escape codes. |
static java.lang.String |
linkHTML(java.lang.String text)
Replace links with HTML links. |
static java.lang.String |
stripTags(java.lang.String html)
Strip the HTML tags from the text. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
httpRegex
public static java.util.regex.Pattern httpRegex
wwwRegex
public static java.util.regex.Pattern wwwRegex
emailRegex
public static java.util.regex.Pattern emailRegex
Utils
public Utils()
linkHTML
public static java.lang.String linkHTML(java.lang.String text)
- Replace links with HTML links.
Includes http, www, images, video, audio, email address.
escapeHTML
public static java.lang.String escapeHTML(java.lang.String html)
- Replace reserved HTML character with their HTML escape codes.
stripTags
public static java.lang.String stripTags(java.lang.String html)
- Strip the HTML tags from the text.