@SafeHtml
support will be removed in a future version@Documented @Constraint(validatedBy={}) @Target(value={METHOD,FIELD,ANNOTATION_TYPE,CONSTRUCTOR,PARAMETER,TYPE_USE}) @Retention(value=RUNTIME) @Repeatable(value=SafeHtml.List.class) @Deprecated public @interface SafeHtml
Note that this constraint assumes you want to validate input which represents a body fragment of an HTML document. If
you instead want to validate input which represents a complete HTML document, add the html
, head
and
body
tags to the used whitelist as required.
Modifier and Type | Optional Element and Description |
---|---|
String[] |
additionalTags
Deprecated.
|
SafeHtml.Tag[] |
additionalTagsWithAttributes
Deprecated.
|
String |
baseURI
Deprecated.
|
Class<?>[] |
groups
Deprecated.
|
String |
message
Deprecated.
|
Class<? extends Payload>[] |
payload
Deprecated.
|
SafeHtml.WhiteListType |
whitelistType
Deprecated.
|
public abstract String message
public abstract Class<?>[] groups
public abstract SafeHtml.WhiteListType whitelistType
public abstract String[] additionalTags
whitelistType()
.public abstract SafeHtml.Tag[] additionalTagsWithAttributes
public abstract String baseURI
Copyright © 2021 JBoss by Red Hat. All rights reserved.