Java HTML Parse Jsoup br2nl(String html)

Here you can find the source of br2nl(String html)

Description

brnl

License

Open Source License

Declaration

public static String br2nl(String html) 

Method Source Code

//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*/
}

Related

  1. clean(String html)
  2. clean(String html, Whitelist whitelist)
  3. cleanHTML(final String html)
  4. cleanHtmlCode(String html)