Hmm, it seems that $!webwork.htmlEncode() is doing exactly what I was looking for.
taavi. > I am about to use this #bean macro and am wondering if > this is a proper way of doing it? > > My .vm page contains: > > #bean( "util.Html" $html ) > $html.escape( "This text will <b>end up escaped</b>." ) > > and my Html helper bean is like this: > > public class Html > { > public static String escape( String s ) > { > // method that returns escaped version of parameter s > return ...; > } > } > > And speaking of escaping html with velocity... do you know > if there is an existing/better way of doing it? ------------------------------------------------------- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ _______________________________________________ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork