Here you can find the source of htmlFilterToEmpty(String value)
public static String htmlFilterToEmpty(String value)
//package com.java2s; public class Main { public static String htmlFilterToEmpty(String value) { if (value == null || value.length() == 0) { return ""; }/*w ww. j av a2 s.co m*/ return value.replaceAll("&", "&").replaceAll("<", "<").replaceAll(">", ">").replaceAll("\"", """); } }