develooper Front page | perl.libwww | Postings from January 2002

Re: Fixing opening/closing tags.

Thread Previous | Thread Next
Sean M. Burke
January 8, 2002 21:56
Re: Fixing opening/closing tags.
Message ID:
At 19:13 2002-01-08 -0800, Bill Moseley wrote:
>I call objectify_text() and then I can easily run through the ~text
>My thought was to make passes through the ~text, removing text as needed
>(any text from [1st, 2nd, etc.] " --" onwards), remove nodes with a single,
>empty/undefined text segment, and then use as_HTML.

(remember to call deobjectify_text() before as_HTML)

>But that seems way too awkward.

It sounds like a fine way to do this.  What you have in mind is an
inherently complex task, and this is the most straightforward
implementation of it.

Sean M. Burke

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About