myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Matthias Wessendorf" <mat...@apache.org>
Subject Re: util to escape JavaScript ?
Date Wed, 20 Aug 2008 16:04:22 GMT
On Wed, Aug 20, 2008 at 5:59 PM, Matthias Wessendorf <matzew@apache.org> wrote:
> Hi,
>
> do we have a util (in one of our many subprojects) to escape strings,
> that may be send down to the client as JavaScript?
> I am thinking about "funny" side effects, that come up, when a user
> provides something like "isn't" instead of "isn\'t".
>
Yeah, google always refreshes my memory :-)
http://commons.apache.org/lang/api/org/apache/commons/lang/StringEscapeUtils.html#escapeJavaScript(java.lang.String)

-M

> Thanks,
> Matthias
>
> --
> Matthias Wessendorf
>
> Need JSF and Web 2.0?
> http://code.google.com/p/facesgoodies
>
> further stuff:
> blog: http://matthiaswessendorf.wordpress.com/
> sessions: http://www.slideshare.net/mwessendorf
> mail: matzew-at-apache-dot-org
>



-- 
Matthias Wessendorf

Need JSF and Web 2.0?
http://code.google.com/p/facesgoodies

further stuff:
blog: http://matthiaswessendorf.wordpress.com/
sessions: http://www.slideshare.net/mwessendorf
mail: matzew-at-apache-dot-org

Mime
View raw message