public class HtmlUtils
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static @NotNull java.lang.String |
encode(@NotNull java.lang.String str)
Encodes a string so that the result can be embedded into HTML.
|
static @Nullable java.lang.String |
encodeOptional(@Nullable java.lang.String str)
Encodes an optional string so that the result can be embedded into HTML.
|
@Nullable
public static @Nullable java.lang.String encodeOptional(@Nullable
@Nullable java.lang.String str)
str - the optional string to encodenull if the input
parameter is null@NotNull
public static @NotNull java.lang.String encode(@NotNull
@NotNull java.lang.String str)
str - the string to encode