eatQuot

From Documentation
java.lang.String eatQuot(java.lang.String)
i.e., StringFns.eatQuot(String)

Eliminates single and double quotations to avoid JavaScript injection. It eliminates all quotations. In other words, the specified string shall NOT contain any quotations. It is used to avoid JavaScript injection. For exmple, in DSP or JSP pages, the following codes is better to escape with this method.

<input value="${c:eatQuot(param.some)}"/>

Version History

Last Update : 2013/09/11


Version Date Content
     


Copyright © Potix Corporation. This article is licensed under GNU Free Documentation License.