public class HtmlUtils extends Object
Modifier and Type | Method and Description |
---|---|
static String |
getIP()
Used to get the WebServer's IP with Port.
|
static String |
getProtocol() |
static String |
getRelativeInspectUrl(String playerName) |
static String |
getRelativeInspectUrl(UUID uuid) |
static String |
removeXSS(String string)
Attempts to remove XSS components.
|
static String |
replacePlaceholders(String html,
Map<String,Serializable> replaceMap)
Replaces ${placeholder} placeholders.
|
static String |
separateWithQuotes(String... strings) |
static String |
swapColorsToSpan(String string)
Changes Minecraft color codes to HTML span elements with correct color class assignments.
|
public static String replacePlaceholders(String html, Map<String,Serializable> replaceMap)
html
- Html to replace placeholders fromreplaceMap
- Placeholders and valuespublic static String getIP()
public static String getProtocol()
public static String removeXSS(String string)
string
- String to remove XSS components frompublic static String swapColorsToSpan(String string)
string
- String to replace Minecraft color codes fromCopyright © 2017. All rights reserved.