Java HTML to String toTextareaInput(String str)

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

Description

to Textarea Input

License

Open Source License

Declaration

public static String toTextareaInput(String str) 

Method Source Code

//package com.java2s;

public class Main {

    public static String toTextareaInput(String str) {
        if (str == null)
            return "";
        str = str.replaceAll("&", "&");
        str = str.replaceAll("<", "&lt;");
        str = str.replaceAll(">", "&gt;");
        return str;
    }// w ww.  j a  va  2 s  .com
}

Related

  1. htmlToText(String input)
  2. htmlToText(String sHTML)
  3. toText(String html)
  4. toText(String html)
  5. toText(String text)