Package org.owasp.validator.html
Class TagMatcher
- java.lang.Object
-
- org.owasp.validator.html.TagMatcher
-
public class TagMatcher extends java.lang.Object
Uses smart matching to match tags- Author:
- Kristian Rosenvold
-
-
Constructor Summary
Constructors Constructor Description TagMatcher(java.lang.Iterable<java.lang.String> allowedValues)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
matches(java.lang.String tagName)
Examines if this tag matches the values in this matcher.int
size()
-
-
-
Method Detail
-
matches
public boolean matches(java.lang.String tagName)
Examines if this tag matches the values in this matcher. Please note that this is case-insensitive, which is ok for html and xhtml, but not really for xml- Parameters:
tagName
- The tag name to look for- Returns:
- true if the tag name matches this mach
-
size
public int size()
-
-