<?xml version="1.0" encoding="windows-1252"?>
<node id="56674" title="How to get HTML::Parser to return a line of parsed text" created="2001-02-06 14:49:57" updated="2005-08-08 09:08:33">
<type id="115">
perlquestion</type>
<author id="51130">
donfreenut</author>
<data>
<field name="doctext">
&lt;br&gt;
I'm using the [HTML::Parser] class to remove all tags from an HTML document.&lt;br&gt;
&lt;br&gt;
After the call to HTMLParser-&gt;parse($_); I want to have a line of text, tag-free, as a scalar variable to do with what I choose.  HTMLParser-&gt;parse(); returns a reference to the parser object.&lt;br&gt;
&lt;br&gt;
How can I get that scalar?  Should it be done in the event handler for 'text' items?&lt;br&gt;
&lt;br&gt;</field>
</data>
</node>
