You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by ah...@apache.org on 2022/11/04 11:48:43 UTC

[commons-text] branch master updated: Fix javadoc for escapeHtml4 (#382)

This is an automated email from the ASF dual-hosted git repository.

aherbert pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-text.git


The following commit(s) were added to refs/heads/master by this push:
     new 8d8185bc Fix javadoc for escapeHtml4 (#382)
8d8185bc is described below

commit 8d8185bc3267fb0b9058a79157c902aa1240e9e6
Author: James Nord <jt...@users.noreply.github.com>
AuthorDate: Fri Nov 4 11:48:38 2022 +0000

    Fix javadoc for escapeHtml4 (#382)
    
    The javadoc example for the code was wrongly escaping quotes
---
 src/main/java/org/apache/commons/text/StringEscapeUtils.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/main/java/org/apache/commons/text/StringEscapeUtils.java b/src/main/java/org/apache/commons/text/StringEscapeUtils.java
index 5ddbc232..5888817e 100644
--- a/src/main/java/org/apache/commons/text/StringEscapeUtils.java
+++ b/src/main/java/org/apache/commons/text/StringEscapeUtils.java
@@ -567,7 +567,7 @@ public class StringEscapeUtils {
      * <p>{@code "bread" &amp; "butter"}</p>
      * becomes:
      * <p>
-     * {@code &amp;quot;bread&amp;quot; &amp;amp; &amp;quot;butter&amp;quot;}.
+     * {@code &quot;bread&quot; &amp;amp; &quot;butter&quot;}.
      * </p>
      *
      * <p>Supports all known HTML 4.0 entities, including funky accents.