Skip to content

Commit 604a78f

Browse files
authored
Be clearer about quotes in forHtmlAttribute docs.
1 parent 0b581f8 commit 604a78f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

core/src/main/java/org/owasp/encoder/Encode.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -276,6 +276,8 @@ public static void forHtmlContent(Writer out, String input)
276276
*
277277
* <p><b>Additional Notes</b></p>
278278
* <ul>
279+
* <li>When using this method, the caller must provide quotes around the attribute value.</li>
280+
*
279281
* <li>Both the single-quote character ({@code '}) and the
280282
* double-quote character ({@code "}) are encoded so this is safe
281283
* for HTML attributes with either enclosing character.</li>

0 commit comments

Comments
 (0)