Return-Path: Delivered-To: apmail-jakarta-commons-dev-archive@apache.org Received: (qmail 34048 invoked from network); 10 Apr 2003 16:52:39 -0000 Received: from exchange.sun.com (192.18.33.10) by daedalus.apache.org with SMTP; 10 Apr 2003 16:52:39 -0000 Received: (qmail 7465 invoked by uid 97); 10 Apr 2003 16:54:32 -0000 Delivered-To: qmlist-jakarta-archive-commons-dev@nagoya.betaversion.org Received: (qmail 7458 invoked from network); 10 Apr 2003 16:54:32 -0000 Received: from daedalus.apache.org (HELO apache.org) (208.185.179.12) by nagoya.betaversion.org with SMTP; 10 Apr 2003 16:54:32 -0000 Received: (qmail 33869 invoked by uid 500); 10 Apr 2003 16:52:35 -0000 Mailing-List: contact commons-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Jakarta Commons Developers List" Reply-To: "Jakarta Commons Developers List" Delivered-To: mailing list commons-dev@jakarta.apache.org Received: (qmail 33848 invoked from network); 10 Apr 2003 16:52:34 -0000 Received: from dsl093-128-006.sfo2.dsl.speakeasy.net (HELO edamame.stinky.com) (66.93.128.6) by daedalus.apache.org with SMTP; 10 Apr 2003 16:52:34 -0000 Received: (qmail 29098 invoked by uid 510); 10 Apr 2003 16:52:49 -0000 Date: Thu, 10 Apr 2003 09:52:49 -0700 From: Alex Chaffee / Purple Technology To: Jakarta Commons Developers List Subject: Re: [lang] Entity Escaping (HTML/XML) Message-ID: <20030410095248.D31599@stinky.com> Reply-To: alex@jguru.com References: <20030409161101.A31599@stinky.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from bayard@generationjava.com on Thu, Apr 10, 2003 at 01:31:10AM -0400 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N On Thu, Apr 10, 2003 at 01:31:10AM -0400, Henri Yandell wrote: > > > On Wed, 9 Apr 2003, Alex Chaffee / Purple Technology wrote: > > > My question was really between > > String x = StringEscapeUtils.escapeHtml32(str); > > and > > String x = StringEscapeUtils.escapeHtml(str, Entities.HTML32); > > How about StringEscapeUtils.escape(str, Entities.HTML32) ?? That's so crazy, it just might work!! > The Html in the method name is redundant above and you can force people to > have to think about what kind of thing they're escaping. It then gives > rise to a future pluggable component. A future component that *already exists*! I love it when on-the-fly refactoring leads to emergent design that's better than the one you (I) would have come up with on your (my) own. -- Alex Chaffee mailto:alex@jguru.com Purple Technology - Code and Consulting http://www.purpletech.com/ jGuru - Java News and FAQs http://www.jguru.com/alex/ Gamelan - the Original Java site http://www.gamelan.com/ Stinky - Art and Angst http://www.stinky.com/ --------------------------------------------------------------------- To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-dev-help@jakarta.apache.org