You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by David Merrilees <da...@fenc.org.uk> on 2005/04/18 17:09:22 UTC

Escape function for xsp

I'm retrieving a string value from a cookie using xsp. When set, the
string value sometimes contains an apostrophe, but when returned by xsp
the string is escaped and looks like this:

David+%27Leigh+Walker%27+Holland

instead of:

David 'Leigh Walker' Holland

Is there any kind of unescape function in xsp?

Thanks

David Merrilees


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Re: Escape function for xsp

Posted by Antonio Gallardo <ag...@agssa.net>.
Hi:

Built-in cocoon, try:

http://cocoon.apache.org/2.1/apidocs/org/apache/cocoon/util/NetUtils.html#decode(java.lang.String,%20java.lang.String)

Best Regards,

Antonio Gallardo.

On Lun, 18 de Abril de 2005, 10:09, David Merrilees dijo:
> I'm retrieving a string value from a cookie using xsp. When set, the
> string value sometimes contains an apostrophe, but when returned by xsp
> the string is escaped and looks like this:
>
> David+%27Leigh+Walker%27+Holland
>
> instead of:
>
> David 'Leigh Walker' Holland
>
> Is there any kind of unescape function in xsp?
>
> Thanks
>
> David Merrilees
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org