Hi John, > Hi, i'm new to the list and can't give offer a velocity solution, but i do > know exactly what manish is talking about. it does look the Escape Tool is > used for something else Welcome to the group. :)
> i ran into this using the struts-bean taglibs, where you want the HTML to > be parsed: > > <bean:write filter="false" name="article" property="articleBodyShort" /> > > The filter=false is the key. By default, it's filter="true", so if your > string contains HTML, it will *not* get parsed, it will just print to > screen as is. I specifically turn filter=false for all bean:write tags that > i know will include HTML. This one, eh? http://struts.apache.org/userGuide/struts-bean.html#write > Hopefully someone knows the velocity equivalent of this filter=false is to Struts as $user.comments is to Velocity filter=true is to Struts as $esc.html($user.comments) is to Velocity To make things clearer, let's say you have <a href="http://some.url.com/">some name</a> in the comments. $user.comments $esc.html($user.comments) will render as <a href="http://some.url.com/">some name</a> <a href="http://some.url.com/">some name</a> And from your browser, you will see some name (with a link to http://some.url.com/) <a href="http://some.url.com/">some name</a> (no links, no nothing) Best regards, -- Shinobu Kawai -- Shinobu Kawai <[EMAIL PROTECTED]> --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]