Skip to content

Commit

Permalink
HV-873 Clarifying scope of @SafeHtml constraint in JavaDocs
Browse files Browse the repository at this point in the history
  • Loading branch information
gunnarmorling committed Apr 24, 2014
1 parent ccc75d5 commit 0972d34
Showing 1 changed file with 4 additions and 0 deletions.
Expand Up @@ -33,6 +33,10 @@
/**
* Validate a rich text value provided by the user to ensure that it contains no malicious code, such as embedded
* <script> elements.
* <p>
* 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 {@code html}, {@code head} and
* {@code body} tags to the used whitelist as required.
*
* @author George Gastaldi
*/
Expand Down

0 comments on commit 0972d34

Please sign in to comment.