Class Attribute

java.lang.Object
org.owasp.validator.html.model.Attribute

public class Attribute extends Object
A model for HTML attributes and the "rules" they must follow (either literals or regular expressions) in order to be considered valid.
Author:
Arshan Dabirsiaghi, Kristian Rosenvold
  • Constructor Details

  • Method Details

    • matchesAllowedExpression

      public boolean matchesAllowedExpression(String value)
    • containsAllowedValue

      public boolean containsAllowedValue(String valueInLowerCase)
    • getName

      public String getName()
    • getOnInvalid

      public String getOnInvalid()
      Returns:
      The onInvalid value a tag could have, from the list of "filterTag", "removeTag" and "removeAttribute"
    • mutate

      public Attribute mutate(String onInvalid, String description)
    • matcherRegEx

      public String matcherRegEx(boolean hasNext)