From Documentation

Jump to: navigation, search





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/9/11


Version Date Content
     




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