Example usage for com.liferay.portal.kernel.util StringPool CDATA_CLOSE

List of usage examples for com.liferay.portal.kernel.util StringPool CDATA_CLOSE

Introduction

In this page you can find the example usage for com.liferay.portal.kernel.util StringPool CDATA_CLOSE.

Prototype

String CDATA_CLOSE

To view the source code for com.liferay.portal.kernel.util StringPool CDATA_CLOSE.

Click Source Link

Usage

From source file:com.liferay.portlet.journal.util.VelocityTemplateParser.java

License:Open Source License

protected String stripCDATA(String s) {
    if (s.startsWith(StringPool.CDATA_OPEN) && s.endsWith(StringPool.CDATA_CLOSE)) {

        s = s.substring(StringPool.CDATA_OPEN.length(), s.length() - StringPool.CDATA_CLOSE.length());
    }/* w  w w.j  a v a2  s . com*/

    return s;
}