Here you can find the source of sanitize(String original)
public static String sanitize(String original)
//package com.java2s; //License from project: Apache License public class Main { public static final String SANITIZED_FLAG = "[SANITIZED]"; public static String sanitize(String original) { String cleaned = original.replace("\r", "|").replace("\n", "|").replace("\t", "|"); if (!cleaned.equals(original)) { cleaned += SANITIZED_FLAG;/*from w w w. j av a 2 s. com*/ } return cleaned; } }