commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From robert burrell donkin <robertburrelldon...@blueyonder.co.uk>
Subject Re: [lang] Entity Escaping (HTML/XML)
Date Thu, 10 Apr 2003 18:35:48 GMT

On Thursday, April 10, 2003, at 05:52 PM, Alex Chaffee / Purple Technology 
wrote:

> 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!!

+1

>> 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.

+1

- robert


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


Mime
View raw message