Skip to content

Commit 0b581f8

Browse files
authored
Make JSP example in JavaDocs more concise.
1 parent 15903b4 commit 0b581f8

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -243,8 +243,7 @@ public static void forHtmlContent(Writer out, String input)
243243
*
244244
* <b>Example JSP Usage</b>
245245
* <pre>
246-
* &lt;div title=&quot;&lt;%=Encode.forHtmlAttribute(unsafeData)%&gt;&quot;&gt;...&lt;/div&gt;
247-
* &lt;div title=&#39;&lt;%=Encode.forHtmlAttribute(unsafeData)%&gt;&#39;&gt;...&lt;/div&gt;
246+
* &lt;input value=&quot;&lt;%=Encode.forHtml(unsafeData)%&gt;&quot; title=&#39;&lt;%=Encode.forHtml(moreUnsafeData)%&gt;&#39; /&gt;
248247
* </pre>
249248
*
250249
* <table border="0" class="memberSummary" summary="Shows the input and results of encoding">

0 commit comments

Comments
 (0)