티스토리 뷰

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;"," ");


'Android 개발 메모' 카테고리의 다른 글

Dialog EditText  (0) 2016.07.27
TextView에 들어 있는 HTML 링크 처리  (0) 2016.06.28
현재 메모리와 토탈 메모리 확인하기  (0) 2016.06.24
댓글