File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
core/src/main/java/org/owasp/encoder Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -243,7 +243,7 @@ public static void forHtmlContent(Writer out, String input)
243
243
*
244
244
* <b>Example JSP Usage</b>
245
245
* <pre>
246
- * <div> ;<%=Encode.forHtmlAttribute(unsafeData)%></div >
246
+ * <input value=" ;<%=Encode.forHtmlAttribute(unsafeData)%>" title='& lt;%=Encode.forHtmlAttribute(moreUnsafeData)%>' / >
247
247
* </pre>
248
248
*
249
249
* <table border="0" class="memberSummary" summary="Shows the input and results of encoding">
@@ -276,6 +276,8 @@ public static void forHtmlContent(Writer out, String input)
276
276
*
277
277
* <p><b>Additional Notes</b></p>
278
278
* <ul>
279
+ * <li>When using this method, the caller must provide quotes around the attribute value.</li>
280
+ *
279
281
* <li>Both the single-quote character ({@code '}) and the
280
282
* double-quote character ({@code "}) are encoded so this is safe
281
283
* for HTML attributes with either enclosing character.</li>
You can’t perform that action at this time.
0 commit comments