OpenCms JSP standard taglib
Function escape
java.lang.String escape(java.lang.String, java.lang.String)
Encodes a String in a way similar to the JavaScript "encodeURIcomponent" function.
In order to avoid encoding hell, it's better to just use ${cms:encode(String)}
on a JSP to transfer data that will be decoded using "decodeURIcomponent".
JavaScript "decodeURIcomponent" can decode Strings that have been encoded using this method, provided "UTF-8" has been used as encoding.
The 1st parameter is the String to encode, the 2nd the encoding to be used, e.g. "UTF-8".
Function Information |
Function Class | org.opencms.i18n.CmsEncoder |
Function Signature | java.lang.String escape(java.lang.String, java.lang.String) |
Display Name | None |
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.