Skip to content

Commit 042a88e

Browse files
authored
Merge pull request OWASP#23 from thariyarox/forHtmlAttribute_doc_fix_1
forHtmlAttribute example usage documentation correction
2 parents 81b9fdc + a439831 commit 042a88e

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)