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

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

Introduction

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

Prototype

String CDATA_OPEN

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

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());
    }//from www  . ja  v a2 s  . co m

    return s;
}