এইচটিএমএল স্ট্রিং প্রদর্শন করা যায় না


99

আমি অ্যান্ড্রয়েড ওয়েবভিউতে স্ট্রিং এইচটিএমএল নিয়ে লড়াই করছি।

সার্ভারে, আমি একটি ওয়েব পৃষ্ঠা ডাউনলোড করেছি এবং এইচটিএমএল অক্ষর এবং উদ্ধৃতিগুলি (আমি পাইথন ব্যবহার করেছি) এড়িয়ে চললাম:

my_string = html.escape(my_string, True)

অ্যান্ড্রয়েড ক্লায়েন্টের দিকে: স্ট্রিংগুলি এর দ্বারা আটকানো হয়:

myString = StringEscapeUtils.unescapeHtml4(myString)
webview.loadData( myString, "text/html", "encoding");

তবে ওয়েবভিউ কেবল তাদের আক্ষরিক স্ট্রিং হিসাবে প্রদর্শন করে। ফলাফল এখানে:

এখানে চিত্র বর্ণনা লিখুন

সম্পাদনা করুন: আমি সার্ভারের দিক থেকে ফিরে আসা মূল স্ট্রিং যুক্ত করছি:

লিঙ্ক rel = & quot; আপেল-টাচ-আইকন & quot; মাপ = & quot; 114x114 & quot; href = & quot; /static/favicon/apple-touch-icon-114x114.png" & gt; & lt; লিঙ্ক rel = & quot; আপেল-টাচ-আইকন & quot; মাপ = & quot; 72x72 & quot; href = & quot; /static/favicon/apple-touch-icon-72x72.png" & gt; & lt; লিঙ্ক rel = & quot; আপেল-টাচ-আইকন & quot; আকার = & quot; 144x144 & quot; href = & quot; /static/favicon/apple-touch-icon-144x144.png" & gt; & lt; লিঙ্ক rel = & quot; আপেল-টাচ-আইকন & quot; মাপ = & quot; 60x60 & quot; href = & quot; /static/favicon/apple-touch-icon-60x60.png" & gt; & lt; লিঙ্ক rel = & quot; আপেল-টাচ-আইকন & quot; আকার = & quot; 120x120 & quot; href = & quot; /static/favicon/apple-touch-icon-120x120.png" & gt; & lt; লিঙ্ক rel = & quot; আপেল-টাচ-আইকন & quot; মাপ = & quot; 76x76 & quot; href = & quot; /static/favicon/apple-touch-icon-76x76.png" & gt; & lt; লিঙ্ক rel = & quot; আপেল-টাচ-আইকন & quot; মাপ = & quot; 152x152 & quot; href = & quot; /static/favicon/apple-touch-icon-152x152.png" & gt; & lt; লিঙ্ক rel = & quot; আপেল-টাচ-আইকন & quot; মাপ = & quot; 180x180 & quot; href = & quot; /static/favicon/apple-touch-icon-180x180.png" & gt; & lt; লিঙ্ক rel = & quot; আইকন & quot; প্রকার = & quot; চিত্র / পিএনজি & quot; href = & quot; /static/favicon/favicon-192x192.png" মাপ = & quot; 192x192 & quot; & জিটি; & lt; লিঙ্ক rel = & quot; আইকন & quot; প্রকার = & quot; চিত্র / পিএনজি & quot; href = & quot; /static/favicon/favicon-160x160.png" আকার = & quot; 160x160 & quot; & gt; & lt; লিঙ্ক rel = & quot; আইকন & quot; প্রকার = & quot; চিত্র / পিএনজি & quot; href = & quot; /static/favicon/favicon-96x96.png" মাপ = & quot; 96x96 & quot; & জিটি; & lt; লিঙ্ক rel = & quot; আইকন & quot; প্রকার = & quot; চিত্র / পিএনজি & quot; href = & quot; /static/favicon/favicon-16x16.png" মাপ = & quot; 16x16 & quot; & জিটি; & lt; লিঙ্ক rel = & quot; আইকন & quot; প্রকার = & quot; চিত্র / পিএনজি & quot; href = & quot; /static/favicon/favicon-32x32.png" মাপ = & quot; 32x32 & quot; & জিটি; & lt; মেটা নাম = & quot; মিস অ্যাপ্লিকেশন-টাইল কালার & quot; সামগ্রী = & quot; # da532c & quot; & gt; & lt; মেটা নাম = & quot; মিস অ্যাপ্লিকেশন-টাইলআইমেজ & quot; সামগ্রী = & quot; /static/favicon/mstil-144x144.png" & gt; & lt; মেটা নাম = & quot; মিস অ্যাপ্লিকেশন-কনফিগারেশন & quot; সামগ্রী = & quot; /static/favicon/browserconfig.xml" & জিটি; & lt;! - বাহ্যিক সিএসএস - & gt; & lt; লিঙ্ক rel = & quot; স্টাইলশিট & quot; href = & quot;https://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css& quot; & gt; & lt;! - বাহ্যিক হরফ - & gt; & lt; লিঙ্ক href = & quot; // maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel = & quot; স্টাইলশিট & quot; & gt; & lt; লিঙ্ক href = & # x27; // fouts.googleapis.com/css?family=Open+Sans:300,600' rel = & # x27; স্টাইলশিট & # x27; প্রকার = & # x27; পাঠ্য / সিএসএস & # x27; & gt; & lt; লিঙ্ক href = & # x27; // fouts.googleapis.com/css?family=Lora:400,700 ' rel = & # x27; স্টাইলশিট & # x27; প্রকার = & # x27; পাঠ্য / সিএসএস & # x27; & gt; & lt;! - [যদি LT 9 9] হয় & gt; & lt; স্ক্রিপ্ট src = & quot; // cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7.2/html5shiv.min.js" ;> ;< ;/script> & lt; লিপি; & lt ;! [এন্ডিফ] - & জিটি; & lt;! - সাইট সিএসএস - & জিটি; & lt; লিঙ্ক rel = & quot; স্টাইলশিট & quot; প্রকার = & quot; পাঠ্য / সিএসএস & quot; href = & quot; /static/css/style.css" & gt; & lt; লিঙ্ক rel = & quot; স্টাইলশিট & quot; প্রকার = & quot; পাঠ্য / সিএসএস & quot; href = & quot; /static/css/glyphicon.css" & gt; & lt; / মাথা & জিটি; & lt; শরীর & জিটি; & lt; ডিভ ক্লাস = & quot; ধারক নিবন্ধ-পৃষ্ঠা & quot; & gt; & lt; ডিভ ক্লাস = & quot; সারি & quot; & gt; & lt; ডিভ ক্লাস = & quot; কল-এমডি -8 কল-এমডি-অফসেট -2 & quot; & gt; & lt; h2 & gt; & lt; a href = & quot; উদ্ধৃতি; href = & quot; /static/css/glyphicon.css" & gt; & lt; / মাথা & জিটি; & lt; শরীর & জিটি; & lt; ডিভ ক্লাস = & quot; ধারক নিবন্ধ-পৃষ্ঠা & quot; & gt; & lt; ডিভ ক্লাস = & quot; সারি & quot; & gt; & lt; ডিভ ক্লাস = & quot; কল-এমডি -8 কল-এমডি-অফসেট -2 & quot; & gt; & lt; h2 & gt; & lt; a href = & quot; উদ্ধৃতি; href = & quot; /static/css/glyphicon.css" & gt; & lt; / মাথা & জিটি; & lt; শরীর & জিটি; & lt; ডিভ ক্লাস = & quot; ধারক নিবন্ধ-পৃষ্ঠা & quot; & gt; & lt; ডিভ ক্লাস = & quot; সারি & quot; & gt; & lt; ডিভ ক্লাস = & quot; কল-এমডি -8 কল-এমডি-অফসেট -2 & quot; & gt; & lt; h2 & gt; & lt; a href = & quot;http://www.huffingtonpost.com/2015/03/22/ted-cru-climate-change_n_6919002.html & quot; & gt; গভঃ। জেরি ব্রাউন টেড ক্রুজ বলেছেন & # 39; একেবারে অসম্পূর্ণ & amp; # 39; জলবায়ু পরিবর্তনের কারণে অফিসে দৌড়াতে & lt; / a & gt; & lt; / h2 & gt; & lt; এইচ 4 & জিটি; স্যাম লেভিন & lt; / এইচ 4 & জিটি; & lt; ডিভ ক্লাস = & quot; নিবন্ধ & quot; & gt; & lt; পি & জিটি; ক্যালিফোর্নিয়ার গভর্নর জেরি ব্রাউন (ডি) রবিবার বলেছিলেন যে টেক্সাস সেন টেড ক্রুজ (আর-টেক্সাস) অফিসে প্রার্থী হওয়ার জন্য একেবারেই অযোগ্য; জলবায়ু পরিবর্তনের বিষয়ে তার অবস্থানের কারণে & & lt; / p & gt; & lt; p & gt; & quot; আমি সবেমাত্র নিউ হ্যাম্পশায়ার থেকে ফিরে এসেছি, যেখানে সেখানে সর্বত্র তুষার এবং বরফ রয়েছে। এ সম্পর্কে আমার মতামতটি সহজ: এই বিষয়ে তর্কগুলি বিজ্ঞানের অনুসরণ করা উচিত এবং ডেটা অনুসরণ করা উচিত, এবং গ্লোবাল ওয়ার্মিংয়ের বিষয়ে অনেক বিপদাশঙ্কাবিদ, তাদের একটি সমস্যা আছে কারণ বিজ্ঞান তাদের ব্যাক আপ দেয় না, & quot; ক্রুজ & lt; a href = & quot;https://www.youtube.com/watch?v=m0UJ_Sc0Udk & quot; & gt; বলেছেন & lt; / a & gt; উপর & quot; লেট নাইট উইথ শেথ মায়ার্স & quot; গত সপ্তাহে। & lt; / p & gt; & lt; p & gt; তাঁর দাবির ব্যাক আপ করতে ক্রুজ স্যাটেলাইটের তথ্য উদ্ধৃত করেছেন যা গত ১ 17 বছরে উল্লেখযোগ্য উষ্ণতার অভাব দেখিয়েছে। তবে ক্রুজ & # x27; এর যুক্তি & lt; a href = & quot; http://www.politifact.com/truth-o-meter/statements/2015/mar/20 / টেড-ক্রুজ / টেড-ক্রুজ-ওয়ার্ল্ডস-অগ্নি-গত-17 বছর / & quot; & জিটি; হয়েছে পলিটিফ্যাক্ট & lt; / a & gt; দ্বারা প্রকাশিত, যা প্রমাণ করেছে যে বিজ্ঞানীদের কাছে জলবায়ু উষ্ণ থাকবে বলে বিশ্বাস করার যথেষ্ট প্রমাণ রয়েছে। & lt; / p & gt; & lt; p & gt; & quot; তিনি যা বলেছেন তা একেবারেই মিথ্যা, "ব্রাউন বলেছেন & lt; a href = & quot; http: //www.nbcnews। অযোগ্য-চলমান-এন 328046 & quot; & gt; এনবিসি & # x27; এর & quot; প্রেসের সাথে দেখা করুন & & quot; & lt; / a & gt; তিনি যোগ করেছেন যে & lt; a href = & quot; http://climate.nasa.gov/sci वैज्ञानिक-concepus / & quot; & gt; 90 শতাংশেরও বেশি & lt; / a & gt; জলবায়ু অধ্যয়নরত বিজ্ঞানীদের মধ্যে একমত হন যে জলবায়ু পরিবর্তন মানুষের ক্রিয়াকলাপ দ্বারা ঘটে। & quot; সেই ব্যক্তি এ জাতীয় স্তরের অজ্ঞতা এবং বিদ্যমান বৈজ্ঞানিক তথ্যগুলির সরাসরি মিথ্যাচারকে বোকা করে। এটি বিস্ময়কর এবং আমি মনে করি যে মানুষ নিজেকে অফিসে প্রার্থী করার জন্য একেবারেই অনুপযুক্ত করে তুলেছে, & quot; ব্রাউন বলল। & Lt; / p & gt; & lt; p & gt; ব্রাউন যুক্ত করেছেন যে জলবায়ু পরিবর্তনের & lt; a href = & quot; http://www.huffingtonpost.com/2015/03/06/california-d حڪم-feb February- রেকর্ড_এন_6820704.html? utm_hp_ref = ক্যালিফোর্নিয়া-খরা & quot; & gt; তার রাজ্যে খরার সৃষ্টি হয়েছিল & lt; / a & gt; পাশাপাশি তীব্র ঠান্ডা এবং ঝড় ও পূর্ব উপকূলে রয়েছে। & lt; / p & gt; & lt; p & gt; যদিও ক্রুজ নিউ হ্যাম্পশায়ারের সর্বত্র তুষার এবং বরফ দেখতে পেয়েছে, তথ্যে দেখা গেছে যে দেশটি আসলে একটি & lt; a href = & quot; http://www.huffingtonpost.com/2015/02/19/cold-weather- শীতকালীন_n_6713104.html & quot; & gt; গড়ের চেয়ে উষ্ণ & lt; / একটি & জিটি; শীত। & lt; / পি & জিটি; & lt; p & gt; টেক্সাসের সিনেটর একটি & lt; একটি href = & quot; ঘোষণা করার আগে ক্রুজ সম্পর্কে ব্রাউন এর সমালোচনা এসেছিল comes http://www.huffingtonpost.com/2015/03/22 /ted-cruz-2016_n_6917824.html" > ব্যক্তিগত প্রচার & lt; / a & gt ;. & lt; / পি & জিটি; & lt; / div & gt; & lt; ডিভ ক্লাস = & quot; মূল & quot; & gt; & lt; a href = & quot;http://www.huffingtonpost.com/2015/03/22/ted-cru-climate-change_n_6919002.html& quot; & gt; মূল দেখুন & lt; / একটি & gt; & lt; / div & gt; & lt; / div & gt; & lt; / div & gt; & lt; / div & gt; & lt; স্ক্রিপ্ট src = & quot; // code.jquery.com/jquery-latest.js" ;> ;< ;/script> & lt; স্ক্রিপ্ট src = & quot; /static/js/modal.js" & gt; & lt; / স্ক্রিপ্ট & gt; & lt; স্ক্রিপ্ট src = & quot; /static/js/bootbox.min.js" & gt; & lt; / স্ক্রিপ্ট & gt; & lt; স্ক্রিপ্ট src = & quot; /static/js/site.js" & gt; & lt; / স্ক্রিপ্ট & gt; & lt; স্ক্রিপ্ট & জিটি; (ফাংশন (i, s, o, g, r, a, m)) [i [& # x27; গুগল অ্যানালিটিকসঅবজেক্ট & # x27;] = আর; আই [আর] = আই [আর] || ফাংশন () i (আমি [ আর] .কি = আই [র] .কিউ || [])। পুশ (আর্গুমেন্ট)}, i [r] .l = 1 * নতুন তারিখ (); এ = এস সিআরএলিটমেন্ট (ও), এম = এস। getElementsByTagName (o) [0]; a.async = 1; a.src = g; m.parentNode.insertBefore (a, m)}) (উইন্ডো, নথি, & # x27; স্ক্রিপ্ট & # x27;, & # x27; // www। google-analytics.com/analytics.js', ' ;ga '); গা (& # x27; তৈরি & # x27 ;, & # x27; ইউএ -56257533-1 & # x27 ;, & # x27; অটো & # x27;); গা (& # x27; প্রেরণ & # x27 ;, & # x27; পৃষ্ঠা দর্শন & # x27;); & lt; / স্ক্রিপ্ট & জিটি; & এলটি; / বডি & জিটি; & lt; / html & gt; "


ডিবাগিং সহায়তা চাইলে ("এই কোডটি কেন কাজ করছে না?") অবশ্যই প্রশ্নটিতে পুনরুত্পাদন করার জন্য পছন্দসই আচরণ, একটি নির্দিষ্ট সমস্যা বা ত্রুটি এবং সংক্ষিপ্ততম কোড অন্তর্ভুক্ত করতে হবে। দেখুন: " একটি ন্যূনতম, পুনরুত্পাদনযোগ্য উদাহরণ কীভাবে তৈরি করবেন "।
টিন ম্যান

উত্তর:


55

আমি কোডটি এখানে পরিবর্তন করেছি:

public class test extends Activity {
    private WebView wv;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.test);
        wv = (WebView) findViewById(R.id.wv);
        String s = "&lt;!DOCTYPE html&gt; &lt;html lang=&quot;en&quot;&gt; &lt;head&gt; &lt;meta charset=&quot;utf-8&quot;&gt; &lt;meta http-equiv=&quot;X-UA-Compatible&quot; content=&quot;IE=edge&quot;&gt; &lt;meta name=&quot;viewport&quot; content=&quot;width=device-width, initial-scale=1.0&quot;&gt; &lt;meta name=&quot;description&quot; content=&quot;&quot;&gt; &lt;title&gt;Saulify&lt;/title&gt; &lt;!-- All the Favicons... --&gt; &lt;link rel=&quot;shortcut icon&quot; href=&quot;/static/favicon/favicon.ico&quot;&gt; &lt;link rel=&quot;apple-touch-icon&quot; sizes=&quot;57x57&quot; href=&quot;/static/favicon/apple-touch-icon-57x57.png&quot;&gt; &lt;link rel=&quot;apple-touch-icon&quot; sizes=&quot;114x114&quot; href=&quot;/static/favicon/apple-touch-icon-114x114.png&quot;&gt; &lt;link rel=&quot;apple-touch-icon&quot; sizes=&quot;72x72&quot; href=&quot;/static/favicon/apple-touch-icon-72x72.png&quot;&gt; &lt;link rel=&quot;apple-touch-icon&quot; sizes=&quot;144x144&quot; href=&quot;/static/favicon/apple-touch-icon-144x144.png&quot;&gt; &lt;link rel=&quot;apple-touch-icon&quot; sizes=&quot;60x60&quot; href=&quot;/static/favicon/apple-touch-icon-60x60.png&quot;&gt; &lt;link rel=&quot;apple-touch-icon&quot; sizes=&quot;120x120&quot; href=&quot;/static/favicon/apple-touch-icon-120x120.png&quot;&gt; &lt;link rel=&quot;apple-touch-icon&quot; sizes=&quot;76x76&quot; href=&quot;/static/favicon/apple-touch-icon-76x76.png&quot;&gt; &lt;link rel=&quot;apple-touch-icon&quot; sizes=&quot;152x152&quot; href=&quot;/static/favicon/apple-touch-icon-152x152.png&quot;&gt; &lt;link rel=&quot;apple-touch-icon&quot; sizes=&quot;180x180&quot; href=&quot;/static/favicon/apple-touch-icon-180x180.png&quot;&gt; &lt;link rel=&quot;icon&quot; type=&quot;image/png&quot; href=&quot;/static/favicon/favicon-192x192.png&quot; sizes=&quot;192x192&quot;&gt; &lt;link rel=&quot;icon&quot; type=&quot;image/png&quot; href=&quot;/static/favicon/favicon-160x160.png&quot; sizes=&quot;160x160&quot;&gt; &lt;link rel=&quot;icon&quot; type=&quot;image/png&quot; href=&quot;/static/favicon/favicon-96x96.png&quot; sizes=&quot;96x96&quot;&gt; &lt;link rel=&quot;icon&quot; type=&quot;image/png&quot; href=&quot;/static/favicon/favicon-16x16.png&quot; sizes=&quot;16x16&quot;&gt; &lt;link rel=&quot;icon&quot; type=&quot;image/png&quot; href=&quot;/static/favicon/favicon-32x32.png&quot; sizes=&quot;32x32&quot;&gt; &lt;meta name=&quot;msapplication-TileColor&quot; content=&quot;#da532c&quot;&gt; &lt;meta name=&quot;msapplication-TileImage&quot; content=&quot;/static/favicon/mstile-144x144.png&quot;&gt; &lt;meta name=&quot;msapplication-config&quot; content=&quot;/static/favicon/browserconfig.xml&quot;&gt; &lt;!-- External CSS --&gt; &lt;link rel=&quot;stylesheet&quot; href=&quot;https://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css&quot;&gt; &lt;!-- External Fonts --&gt; &lt;link href=&quot;//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css&quot; rel=&quot;stylesheet&quot;&gt; &lt;link href=&#x27;//fonts.googleapis.com/css?family=Open+Sans:300,600&#x27; rel=&#x27;stylesheet&#x27; type=&#x27;text/css&#x27;&gt; &lt;link href=&#x27;//fonts.googleapis.com/css?family=Lora:400,700&#x27; rel=&#x27;stylesheet&#x27; type=&#x27;text/css&#x27;&gt; &lt;!--[if lt IE 9]&gt; &lt;script src=&quot;//cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7.2/html5shiv.min.js&quot;&gt;&lt;/script&gt; &lt;script src=&quot;//cdnjs.cloudflare.com/ajax/libs/respond.js/1.4.2/respond.min.js&quot;&gt;&lt;/script&gt; &lt;![endif]--&gt; &lt;!-- Site CSS --&gt; &lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;/static/css/style.css&quot;&gt; &lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;/static/css/glyphicon.css&quot;&gt; &lt;/head&gt; &lt;body&gt; &lt;div class=&quot;container article-page&quot;&gt; &lt;div class=&quot;row&quot;&gt; &lt;div class=&quot;col-md-8 col-md-offset-2&quot;&gt; &lt;h2&gt;&lt;a href=&quot;http://www.huffingtonpost.com/2015/03/22/ted-cruz-climate-change_n_6919002.html&quot;&gt;Gov. Jerry Brown Says Ted Cruz Is &amp;#39;Absolutely Unfit&amp;#39; To Run For Office Because Of Climate Change Views&lt;/a&gt;&lt;/h2&gt; &lt;h4&gt;Sam Levine&lt;/h4&gt; &lt;div class=&quot;article&quot;&gt; &lt;p&gt;California Gov. Jerry Brown (D) said on Sunday that Texas Sen. Ted Cruz (R-Texas) is &quot;absolutely unfit to be running for office&quot; because of his position on climate change.&lt;/p&gt; &lt;p&gt;&quot;I just came back from New Hampshire, where there&#x27;s snow and ice everywhere. My view on this is simple: Debates on this should follow science and should follow data, and many of the alarmists on global warming, they have a problem because the science doesn&#x27;t back them up,&quot; Cruz &lt;a href=&quot;https://www.youtube.com/watch?v=m0UJ_Sc0Udk&quot;&gt;said&lt;/a&gt; on &quot;Late Night with Seth Meyers&quot; last week.&lt;/p&gt; &lt;p&gt;To back up his claim, Cruz cited satellite data that has shown a lack of significant warming over the last 17 years. But Cruz&#x27;s reasoning &lt;a href=&quot;http://www.politifact.com/truth-o-meter/statements/2015/mar/20 /ted-cruz/ted-cruzs-worlds-fire-not-last-17-years/&quot;&gt;has been debunked by Politifact&lt;/a&gt;, which has shown that scientists have ample evidence to believe that the climate will continue to warm.&lt;/p&gt; &lt;p&gt;&quot;What he said is absolutely false,” Brown said on &lt;a href=&quot;http://www.nbcnews.com/meet-the-press/california-governor-ted-cruz- unfit-be-running-n328046&quot;&gt;NBC&#x27;s &quot;Meet the Press.&quot;&lt;/a&gt; He added that &lt;a href=&quot;http://climate.nasa.gov/scientific-consensus/&quot;&gt;over 90 percent&lt;/a&gt; of scientists who study the climate agree that climate change is caused by human activity. &quot;That man betokens such a level of ignorance and a direct falsification of existing scientific data. It&#x27;s shocking, and I think that man has rendered himself absolutely unfit to be running for office,&quot; Brown said.&lt;/p&gt; &lt;p&gt;Brown added that climate change has &lt;a href=&quot;http://www.huffingtonpost.com/2015/03/06/california-drought-february- record_n_6820704.html?utm_hp_ref=california-drought&quot;&gt;caused droughts in his state&lt;/a&gt;, as well as severe cold and storms on the east coast.&lt;/p&gt; &lt;p&gt;While Cruz may have seen snow and ice everywhere in New Hampshire, data shows that the country is actually experiencing a &lt;a href=&quot;http://www.huffingtonpost.com/2015/02/19/cold-weather- winter_n_6713104.html&quot;&gt;warmer than average&lt;/a&gt; winter.&lt;/p&gt; &lt;p&gt;Brown’s criticism of Cruz comes one day before the Texas senator is set to announce a &lt;a href=&quot;http://www.huffingtonpost.com/2015/03/22 /ted-cruz-2016_n_6917824.html&quot;&gt;presidential campaign&lt;/a&gt;. &lt;/p&gt; &lt;/div&gt; &lt;div class=&quot;original&quot;&gt; &lt;a href=&quot;http://www.huffingtonpost.com/2015/03/22/ted-cruz-climate-change_n_6919002.html&quot;&gt;VIEW ORIGINAL&lt;/a&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;script src=&quot;//code.jquery.com/jquery-latest.js&quot;&gt;&lt;/script&gt; &lt;script src=&quot;/static/js/modal.js&quot;&gt;&lt;/script&gt; &lt;script src=&quot;/static/js/bootbox.min.js&quot;&gt;&lt;/script&gt; &lt;script src=&quot;/static/js/site.js&quot;&gt;&lt;/script&gt; &lt;script&gt; (function(i,s,o,g,r,a,m){i[&#x27;GoogleAnalyticsObject&#x27;]=r;i[r]=i[r]||function(){ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) })(window,document,&#x27;script&#x27;,&#x27;//www.google-analytics.com/analytics.js&#x27;,&#x27;ga&#x27;); ga(&#x27;create&#x27;, &#x27;UA-56257533-1&#x27;, &#x27;auto&#x27;); ga(&#x27;send&#x27;, &#x27;pageview&#x27;); &lt;/script&gt; &lt;/body&gt; &lt;/html&gt;";


        wv.loadData(stripHtml(s), "text/html", "UTF-8");

    }

    public String stripHtml(String html) {
        return Html.fromHtml(html).toString();
    }

}

এখানে চিত্র বর্ণনা লিখুন



7

এটা চেষ্টা কর:

wv = (WebView) findViewById(R.id.wv);
String s = "You HTML string";
wv.loadData(stripHtml(s), "text/html", "UTF-8");

public String stripHtml(String html) {
    return Html.fromHtml(html).toString();
}
আমাদের সাইট ব্যবহার করে, আপনি স্বীকার করেছেন যে আপনি আমাদের কুকি নীতি এবং গোপনীয়তা নীতিটি পড়েছেন এবং বুঝতে পেরেছেন ।
Licensed under cc by-sa 3.0 with attribution required.