Java tutorial
//package com.java2s; public class Main { public static String removeHtmlTags(String toCleanString) { toCleanString = toCleanString.replace("<html>", ""); toCleanString = toCleanString.replace("</html>", ""); toCleanString = toCleanString.replace("<head></head>", ""); toCleanString = toCleanString.replace("<body>", ""); toCleanString = toCleanString.replace("</body>", ""); return toCleanString.trim(); } }