velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claude Brisson <>
Subject Re: Closing script tag creating problems '</script>'
Date Wed, 27 Jun 2007 14:48:04 GMT
(Please use the user list for such questions)

Is this value enclosed in quotes ?

esc.javascript mainly escape quotes and line-feeds, so
"$!esc.javascript(...)" should generate a single one-line string.


Le mercredi 27 juin 2007 à 00:36 -0700, Arora a écrit :
> Hi All,
>  I am currently facing issue in my HTML+javascript application which use
> velocity engine because of  tag appears in the saved content. I am fetching
> the value from the database and doing $!esc.javascript to it and then
> setting the value to the html input type='text' . this flow I can not
> change.
> please help me to resolve this as we are not escaping the '/' within the
> engine. I am using velocity 1.5
> regards
> Ajay

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message