Hi,

Aplology for the formatting while posting the problem, i have again updated it now, also the code is fully compiled.

Below is the part of the code:
script starts ... ... ... While(25k to 50k records from DB) { my $field = ''; $field = $h->{'HTML_FIELD'} if(defined($h->{'HTML_FIELD'})); $field = &html_parsing($field) if($field); } sub html_parsing { my $raw_html = shift; my $hs = HTML::Strip->new(); my $string = $hs->parse( $raw_html ); ## Problem: here the $string is becoming blank after parsing $hs->eof; return $string; } ... ... ... script ends
Also, while processing the DATABASE records, below is the one of the dummy html data(from DATABASE) which became blank after html parsing:
$field = qq(<p>With a solid oak top and white painted legs, the New En +gland Side Table compliments any interior design scheme. This stylish + side table comprises a magazine shelf and fluted detailing to the le +gs.</p> <p>The perfect partner to our New England Coffee Table.</p> < +p><br />H43cm L51cm W41cm</p>);


whereas if i'll check only this record through a sample script then after html parsing it value is as expected from DATABASE(not blank)

Thanks
Jaspreet Sethi


In reply to Re^2: HTML::Strip returning blank value after parsing by jaspreet_sethi5875
in thread HTML::Strip returning blank value after parsing by jaspreet_sethi5875

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.