Here you can find the source of cleanHtml(String html)
public static String cleanHtml(String html)
//package com.java2s; public class Main { public static String cleanHtml(String html) { return html.replaceAll("<style[^>]*?>[\\s\\S]*?</style>|<script[^>]*?>[\\s\\S]*?</script>|<.+?>", ""); }/* ww w . ja va 2 s.c o m*/ }