Here you can find the source of toTextareaInput(String str)
public static String toTextareaInput(String str)
//package com.java2s; public class Main { public static String toTextareaInput(String str) { if (str == null) return ""; str = str.replaceAll("&", "&"); str = str.replaceAll("<", "<"); str = str.replaceAll(">", ">"); return str; }// w ww. j a va 2 s .com }