org.hibernate.validator.constraints

## Annotation Type SafeHtml.Tag

-     @Target(value={METHOD,FIELD,ANNOTATION_TYPE,CONSTRUCTOR,PARAMETER})
      @Retention(value=RUNTIME)
      @Documented
      public static @interface SafeHtml.Tag

  Allows to specify whitelist tags with specified optional attributes. Adding a tag with a given attribute also whitelists the tag itself without any attribute.

- - ### Required Element Summary

    Required Elements
    Modifier and Type | Required Element and Description
    --- | ---
    `String` | `name`

  - ### Optional Element Summary

    Optional Elements
    Modifier and Type | Optional Element and Description
    --- | ---
    `String[]` | `attributes`

- - ### Element Detail

    - #### name

          public abstract String name

      Returns:
        the tag name to whitelist.

    - #### attributes

          public abstract String[] attributes

      Returns:
        list of tag attributes which are whitelisted.
      Default:
        {}

Copyright © 2007-2014 Red Hat, Inc. All Rights Reserved