public class FormUtility
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
HTML_WHITE_SPACE_REGEX
Regular expression for values that should be considered white space in HTML (not )
|
static java.lang.String |
QUOTE
Regular expression for values that should be considered a quote in HTML
|
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
extractAttribute(java.lang.String attributeName,
java.lang.String tag)
Gets the attribute value given its name and the tag text it should be in
|
static java.lang.String |
extractAttribute(java.lang.String attributeName,
java.lang.String tag,
boolean convertEntities)
Gets the attribute value given its name and the tag text it should be in
|
public static final java.lang.String HTML_WHITE_SPACE_REGEX
public static final java.lang.String QUOTE
@Nullable public static java.lang.String extractAttribute(java.lang.String attributeName, @NotNull java.lang.String tag)
attributeName
- The name of the attribute to extracttag
- The HTML text containing the attribute and its value@Nullable public static java.lang.String extractAttribute(@Nullable java.lang.String attributeName, @NotNull java.lang.String tag, boolean convertEntities)
attributeName
- The name of the attribute to extracttag
- The HTML text containing the attribute and its valueconvertEntities
- Should the value extracted have entities converted