OpenCms JSP standard taglib
Function unescape

java.lang.String unescape(java.lang.String, java.lang.String)

Decodes a String in a way similar to the JavaScript "decodeURIcomponent" function.

In order to avoid encoding hell, it's better to just use ${cms:decode(String)} on a JSP to transfer data that has been encoded using "encodeURIcomponent".

This method can decode Strings that have been encoded in JavaScript with "encodeURIcomponent", provided "UTF-8" is used as encoding.

The 1st parameter is the String to decode, the 2nd the encoding the string was encoded with, e.g. "UTF-8".



Function Information
Function Classorg.opencms.i18n.CmsEncoder
Function Signaturejava.lang.String unescape(java.lang.String, java.lang.String)
Display NameNone


Output Generated by Tag Library Documentation Generator. Java, JSP, and JavaServer Pages are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries. Copyright 2002-4 Sun Microsystems, Inc. 4150 Network Circle Santa Clara, CA 95054, U.S.A. All Rights Reserved.