2016-12-07 2 views
-1

я имею ниже HTML содержимое с некоторого сервераКак показать содержимое HTML без HTML тега в Android

<link href=\"http:\/\/TSCC222.nexusonline.ca\/Theme\" + 
      "/RenderCSS\\/1246\\\" rel=\\\"stylesheet\\\" \\/><style type=\\\"text\\/css\\\"> " + 
      "body {  background-color:#fff; } #responsive-content {  padding: 1em 1em; } " + 
      " #responsive-content div {  width: 99% !important;  display: block !important;  " + 
      "text-align: center; } img {  float: none !Important;  max-width:99%;  " + 
      "height: auto !important; }<\\/style><div id='responsive-wrapper'><div id='responsive-content'><span style=" + 
      "\\\"font-family: Gotham; text-align: center; font-size: 22px;\\\">" + 
      "It has corking. " + 
      "&nbsp;&nbsp;<br \\/><br \\/>Note that the post lights are part of the shared facility. &nbsp" + 
      ";We have notified the sghts will be " + 
      "repaired shortly.<br \\/><br \\/>Please exercise additional caution in areas " + 
      "that are not well lit.<br \\/><br \\/>Thank you.<\\/span><br style=\\\"font-family: Gotham; " + 
      "font-size: medium; text-align: center;\\\" \\/><br style=\\\"font-family: Gotham; font-size: medium; " + 
      "text-align: center;\\\" \\/><img alt=\\\"\\\" src=\\\"http:\\/\\/internal.maxtvmedia.com\\/parsers\\/iconfinder\\/" + 
      "icons\\/Gnome-Dialog-Information-64.png\\\" style=\\\"cursor: default;\\\" \\" + 
      "/><div><br \/><\/div><\/div><\/div> 

Как показать этот HTML так совершенна, как в Интернете в андроида. FYI я использовал Html.fromhtml() метод кодирования этого, но не имел успеха.

+0

Jsoup будет полезно –

+0

Возможная Дубликат [Разбор HTML в Android] (http://stackoverflow.com/questions/2188049/parse-html-in-android) – Fay007

+0

вы можете использовать TagHandler – Vinodh

ответ

Смежные вопросы