Wrap text to to XML CDATA - Android XML

Android examples for XML:XML CDATA

Description

Wrap text to to XML CDATA

Demo Code


//package com.java2s;

public class Main {
    public static String toCDATA(String text) {
        return "<![CDATA[" + text + "]]>";
    }//from   w  ww . j  a  v  a 2s.  com
}

Related Tutorials