Here you can find the source of br2nl(String html)
public static String br2nl(String html)
//package com.java2s; //License from project: Open Source License import org.jsoup.Jsoup; public class Main { public static String br2nl(String html) { if (html == null) return html; return Jsoup.parse(html).text().replaceAll("\\<.*?>", ""); }/* www . jav a2s. c o m*/ }