public void openTag()

in src/main/java/org/owasp/html/DynamicAttributesSanitizerPolicy.java [60:75]


  public void openTag(String elementName, List<String> attrs) {
    // StylingPolicy repeats some of this code because it is more complicated
    // to refactor it into multiple method bodies, so if you change this,
    // check the override of it in that class.
    if (elementName != null && attrs != null && elementAndAttrPolicies != null) {
      ElementAndAttributePolicies policies = elementAndAttrPolicies.get(elementName);

      String adjustedElementName = applyPolicies2(elementName, attrs, policies);
      if (adjustedElementName != null
          && !(attrs.isEmpty() && policies.htmlTagSkipType.skipAvailability())) {
        writeOpenTag(policies, adjustedElementName, attrs);
        return;
      }
      deferOpenTag(elementName);
    }
  }