velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Arik Levin <>
Subject RE: Html encoding ?
Date Mon, 19 Mar 2001 12:06:27 GMT
I don't know if velocity is prepare to this.. but
you can encode with javascript:

    like this..

                    var x = escape("&");

-----Original Message-----
From: Eddie []
Sent: Monday, March 19, 2001 1:51 PM
Subject: Html encoding ?


How do you encode special characters like "&" to proper readable html text
with velocity ??
Does velocity already have a utility for this ? I noticed that velocity
doesn't do this automaticaly.

I have a little class, called WebUtil, with a class method (note: not an
object method) called htmlEncode. How can I use this in my velocity template

Ed Bras

View raw message