Java String Clean cleanText(String text)

Here you can find the source of cleanText(String text)

Description

Cleans text so it can be shown properly.

License

Open Source License

Parameter

Parameter Description
text Text to clean.

Return

Clean text.

Declaration

public static String cleanText(String text) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {
    /**/*from w  w w  .  j  a v  a2s.c om*/
     * Cleans text so it can be shown properly.
     * 
     * @param text Text to clean.
     * @return Clean text.
     */
    public static String cleanText(String text) {
        return text.replaceAll("&", "&");
    }
}

Related

  1. cleanText(String s)
  2. cleanText(String t)
  3. cleanText(String text)
  4. cleanText(String text)
  5. cleanText(String text)
  6. cleanText(String text)
  7. cleanTextForCSV(final String input)
  8. toText(String content)