Android XML String Unescape replaceEscapeSequence(String input)

Here you can find the source of replaceEscapeSequence(String input)

Description

replace Escape Sequence

Declaration

public static String replaceEscapeSequence(String input) 

Method Source Code

//package com.java2s;

public class Main {

    public static String replaceEscapeSequence(String input) {
        String output = null;/*  ww w  .  ja v  a 2s  . com*/
        if (input != null) {
            output = input.replaceAll("&lt;", "<");
            output = output.replaceAll("&gt;", ">");
            output = output.replaceAll("&amp;", "&");
            output = output.replaceAll("&apos;", "??");
            output = output.replaceAll("&quot;", "\"");
        }
        return output;
    }
}

Related

  1. unescape(String input)
  2. unescape(String source)
  3. unescapeXML(final String xml)
  4. urlEscape(String s)
  5. replaceEscape(String result)
  6. unescape(String text)