You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by bu...@apache.org on 2005/11/07 17:29:50 UTC

DO NOT REPLY [Bug 37385] New: - EscapeUtil.escapeHtml() should clarify that it does not escape ' chars to '

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=37385>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=37385

           Summary: EscapeUtil.escapeHtml() should clarify that it does not
                    escape ' chars to &apos;
           Product: Commons
           Version: 2.1 Final
          Platform: All
               URL: http://jakarta.apache.org/commons/lang/apidocs/org/apach
                    e/commons/lang/StringEscapeUtils.html#escapeHtml(java.la
                    ng.String)
        OS/Version: All
            Status: NEW
          Severity: minor
          Priority: P4
         Component: Lang
        AssignedTo: commons-dev@jakarta.apache.org
        ReportedBy: dov@wass.ws


The official HTML character entity spec does not include the popular "&apos;"
entity name for the single quote character '. the StringUtils class correctly
follows this behavior, leaving single quotes alone. However, many developers
incorrectly assume that ' will get escaped into &apos; (I was one!) and we can
help them by clarifying this in the Javadoc.

The following could be appended to the method Javadoc:

Note: Not all common HTML entity names are formally included in the standard
specification (http://www.w3.org/TR/REC-html40/sgml/entities.html, as listed
below). This method follows the standard, and thus does not escape the
single-quote ' character into &apos.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org