title: html text Extraction in j2me
body: <p>I want to extract text from a web page in j2me, I have used String operations,but I am not getting the result, was my code correct?</p>
  
  <p><strong>The String from a web page:</strong></p>
  
  <pre><code>&lt;td align="left" valign="middle"  class="celebrity-details-description-txt" &gt; 
  
  &lt;p style="text-align: justify;"&gt;
  
   Hero Gopichand's new movie under the direction of Chandrasekhar Yeleti is progressing at brisk pace in Ladakh. Recently, the unit has shot an extensive action scene on Gopichand, Taapsee and others under Buzkashi sport backdrop. alt="Buzkashi sport, gopichand buzkashi, gopichand new movie, buzkashi afghanisthan sport
  
  &lt;/p&gt; 
  
  &lt;p style="text-align: justify;"&gt;&amp;nbsp;&lt;/p&gt; &lt;p style="text-align: justify;"&gt;&amp;nbsp;&lt;/p&gt;
  
  &lt;/td&gt;
  </code></pre>
  
  <p>Here my CODE:</p>
  
  <pre><code>int tdIndex = readUrl.indexOf("&lt;td align=\"left\" valign=\"middle\" class=\"celebrity-details-description-txt\"&gt;");
  tdIndex = readUrl.indexOf("&gt;", tdIndex);
  int endtdIndex = readUrl.indexOf("&lt;/td&gt;", tdIndex);
  String content = readUrl.substring(tdIndex + 1, endtdIndex);
  </code></pre>