Package net.sf.gridarta.utils
Class HtmlUtils
- java.lang.Object
-
- net.sf.gridarta.utils.HtmlUtils
-
public class HtmlUtils extends java.lang.ObjectUtility class for HTML related functions.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static @NotNull java.lang.Stringencode(@NotNull java.lang.String str)Encodes a string so that the result can be embedded into HTML.static @Nullable java.lang.StringencodeOptional(@Nullable java.lang.String str)Encodes an optional string so that the result can be embedded into HTML.
-
-
-
Method Detail
-
encodeOptional
@Nullable public static @Nullable java.lang.String encodeOptional(@Nullable @Nullable java.lang.String str)Encodes an optional string so that the result can be embedded into HTML.- Parameters:
str- the optional string to encode- Returns:
- the optional encoded string; returns
nullif the input parameter isnull
-
encode
@NotNull public static @NotNull java.lang.String encode(@NotNull @NotNull java.lang.String str)Encodes a string so that the result can be embedded into HTML.- Parameters:
str- the string to encode- Returns:
- the encoded string
-
-