You are viewing a plain text version of this content. The canonical link for it is here.
Posted to taglibs-dev@jakarta.apache.org by bu...@apache.org on 2004/11/17 23:00:34 UTC
DO NOT REPLY [Bug 32287] New: -
Escape tag no longer escaping for Javascript
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=32287>.
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=32287
Summary: Escape tag no longer escaping for Javascript
Product: Taglibs
Version: nightly
Platform: PC
OS/Version: Windows XP
Status: NEW
Severity: normal
Priority: P2
Component: String Taglib
AssignedTo: taglibs-dev@jakarta.apache.org
ReportedBy: jpettiss@yahoo.com
The single quote is no longer being escaped, which of course breaks use of the
EscapeTag with Javascript. Given that Javascript is more likely generated than
Java code, perhaps EscapeTag should instead call StringEscapeUtils.escapeJavaScript.
EscapeTag r1.4 called StringUtils.escape(text), which back then had the effect
of escaping for both java and javascript, where a single quote would get
escaped. StringUtils.escape was deprecated and methods split out to escape for
java or javascript.
Note, the comment says it escapes to Java-compatible string, but then gives
escaping a single quote as an example, which is no longer done in the util
class. Note that escaping for javascript also escapes for java (but the reverse
is not true).
--
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: taglibs-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: taglibs-dev-help@jakarta.apache.org