Android 개발 메모

String 내 Html스타일 제거

Dexx 2016. 7. 5. 16:36
html = html.replaceAll("<(.*?)\\>"," ");           //Removes all items in brackets
       html = html.replaceAll("<(.*?)\\\n"," ");   //Must be undeneath
       html = html.replaceFirst("(.*?)\\>", " ");  //Removes any connected item to the last bracket
       html = html.replaceAll("&nbsp;"," ");
       html = html.replaceAll("&amp;"," ");