Java tutorial
//package com.java2s; //License from project: Apache License public class Main { /** * Unescape XML characters, and also replace our special token for preserving a carriage return followed by a line * feed. * * @param body * @return */ public static String unescapeBody(String body) { body = body.replace("<", "<"); body = body.replace(">", ">"); body = body.replace("CARRIAGERETURN\n", "\r\n"); return body; } }