Skip to content

parser.on('text') sometimes gives text that isn't there #6

@mikeyfev1

Description

@mikeyfev1

If you have the handler

parser.on('text', s => { console.log(s) }

and the parser encounters:

<description><![CDATA[<center><table><tr><th colspan='2' align='center'><em>Attributes</em></th></tr><tr bgcolor="#E3E3F3">
<th>ZCTA5CE10</th>
<td>36426</td>
</tr><tr bgcolor="">
<th>AFFGEOID10</th>
<td>8600000US36426</td>
</tr><tr bgcolor="#E3E3F3">
<th>GEOID10</th>
<td>36426</td>
</tr><tr bgcolor="">
<th>ALAND10</th>
<td>1258584220</td>
</tr><tr bgcolor="#E3E3F3">
<th>AWATER10</th>
<td>12694318</td>
</tr></table></center>]]></description>

You will a result string of the single character ">"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions