specialist33 <[EMAIL PROTECTED]> wrote:
> FWVLIW, IME this is not that useful an exercise. Entity encoding is 
> widely used, but the particular subsets of "valid" encodings vary from 
> situation to situation.
> 
> E.g. in XML the text between tags can't use these entities; attribute 
> values must use a subset consisting of IIRC 2? 3? particular entities 
> (those  that might cause confusion, e.g. quotes and ampersands).

Well, the particular situation I'm talking about is generating HTML.   
That's by far the largest use case of velocity tools.   And since HTML 
escaping should be done each and every time user input is rendered in an 
html template to insure that you've still got valid html, I'd say it's a 
tool that should be standard, rather than constantly reinvented.


> If you want the "full monty" Java's standard libraries offer the 
> afore-mentioned URL encoding (which uses EVERYTHING IIRC?).

Not compatible with HTML escaping.  Only useful for URL encoding.  Similar, 
but not the same.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to