I have a string which contains html texts and images parsed from a json file.I need to show it in webview.The string consists of 3-4 paragraph but while displaying in webview it shows like one paragraph i.e the android webview skips the breakline tags.But my requirement is to show as it is in the website with proper alignment.Please help me.
my Json file link is this
and my webview code is
//newsContent contains the json string after parsing.
String all="<html><body>"+newsContent+"</body></html>";
tv.getSettings().setJavaScriptEnabled(true);
tv.getSettings().setPluginsEnabled(true);
tv.getSettings().setSupportZoom(false);
tv.getSettings().setAllowFileAccess(true);
WebSettings webSettings = tv.getSettings();
tv.getSettings().setAllowFileAccess(true);
webSettings.setTextSize(WebSettings.TextSize.NORMAL);
tv.loadDataWithBaseURL(null,all, "text/html", "UTF-8", null);