Subject: | HTML::Strip not replacing tags with single space |
It appears that HTML::Strip isn't replacing a tag with a space when
the value in between the tags is a single character.
For example when I parse this line:
<tr><td>01 May 2006</td><td>506</td><td>10860</td><td>39602</td><td>641.46
MB</td></tr>
I get the following results:
01 May 2006 506 10860 39602 641.46 MB
However when I parse this line which contains fields with single characters:
<tr><td>01 May 2006</td><td>0</td><td>0</td></tr>
I get these results where there is no space between the 2 zeros:
01 May 2006 00
If I add a second character to the first zero it parses as expected:
<tr><td>01 May 2006</td><td>10</td><td>0</td></tr>
Results:
01 May 2006 10 0
However adding a second character to the second zero does make a difference:
<tr><td>01 May 2006</td><td>0</td><td>10</td></tr>
Results:
01 May 2006 010
Is this the expected behavior or should I file a bug for this?
BTW thanks for writing this module I've been using it for several years now.
David O'Dell