Java tutorial
//package com.java2s; public class Main { public static String removeUnecessaryHtmlTag(String str) { return str.replace("<u>", "").replace("</u>", "").replace("<p dir=ltr>", "").replace("<p dir=\"ltr\">", "") .replace("<p>", "").replace("</p>", "").replace("<font color =\"#000000\">", "") .replace("</font>", "").trim(); } }