Skip to content

Commit a439831

Browse files
committed
forHtmlAttribute example usage documentation correction
1 parent 81b9fdc commit a439831

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ public static void forHtmlContent(Writer out, String input)
236236
*
237237
* <b>Example JSP Usage</b>
238238
* <pre>
239-
* &lt;div&gt;&lt;%=Encode.forHtml(unsafeData)%&gt;&lt;/div&gt;
239+
* &lt;div&gt;&lt;%=Encode.forHtmlAttribute(unsafeData)%&gt;&lt;/div&gt;
240240
* </pre>
241241
*
242242
* <table border="0" class="memberSummary" summary="Shows the input and results of encoding">

0 commit comments

Comments
 (0)