Java XML Encode unwrapCDATA(String str)

Here you can find the source of unwrapCDATA(String str)

Description

unwrap CDATA

License

Open Source License

Declaration

public static String unwrapCDATA(String str) 

Method Source Code

//package com.java2s;

public class Main {
    public static final String CDATA_START = "<![CDATA[";
    public static final String CDATA_END = "]]>";

    public static String unwrapCDATA(String str) {
        return str.replace(CDATA_START, "").replace(CDATA_END, "");
    }//w w  w  .  j  a v a2  s  . c om
}

Related

  1. toXMLCData(String cdata)
  2. toXMLCharData(String javaString)
  3. toXMLEscapedTextExpandingWhitespace(String text)
  4. unwrapCdata(String s)
  5. unwrapCdata(String sText)
  6. xmlEncode(final String text)
  7. XMLEncode(final String value)
  8. xmlEncode(String in)
  9. XMLEncode(String name)