String s = "<p>Kamel</p>";int i1 = s.indexOf("<p>");int i2 = s.indexOf("</p>");s = s.substring(i1 + 3, i2);