rendered paste body public static String stripTags(String str) { /* Check String first */ if (!StringUtils.isSet(str)) return str; StringBuilder result = new StringBuilder(str.length()); Reader stripReader = new HTMLStripReader(new StringReader(str)); try { char buf[] = new char[50]; int c; while ((c = stripReader.read(buf)) != -1) result.append(buf, 0, c); } catch (IOException e) { /* Should really not happen */ } finally { try { stripReader.close(); } catch (IOException e) { /* Should really not happen */ } } return result.toString(); }