public class HtmlValidator extends Object
| Constructor and Description |
|---|
HtmlValidator() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
ValidateHtmlClassAttribName(String classAttribName)
Validate whether the specified HTML class attribute name is valid according to the following rule.
|
static boolean |
ValidateHtmlNameAndIdToken(String nameOrId)
Validate whether the specified HTML name or id is valid according to the following rule.
|
public static boolean ValidateHtmlNameAndIdToken(String nameOrId)
Name or ID token begins with a letter ([A-Za-z]), and maybe followed by any number of letters, digits ([0-9]), hyphens ("-"), underscores ("_"), colons (":"), and periods (".").
nameOrId - Name of Id to validate according to HTML's Name and Id naming rule.public static boolean ValidateHtmlClassAttribName(String classAttribName)
Name or ID token begins with a letter ([A-Za-z]), and maybe followed by any number of letters, digits ([0-9]), hyphens ("-"), and underscores ("_").
classAttribName - Class attribute name to validate according to HTML's class attribute name naming rule.Copyright © 2022–2024 Iron Software. All rights reserved.