How to *modify* text in HTML::Element

From: El Duce (ElDuce_at_mailinator.com)
Date: 10/24/04


Date: Sat, 23 Oct 2004 19:16:16 -0500

Sorry for the repost, I hit Send too soon.

I am using HTML::TreeBuilder to futz with some HTML, and I need to
modify the text of some of the HTML::Elements. But I use can't find an
easy way to do this. It's trivial with HTML::Parser, but since I already
created the tree, it seems more efficient to walk the tree and change
text as needed. A small code sample would help.

TIA,
El Duce



Relevant Pages

  • How to text in HTML::Element
    ... I am using HTML::TreeBuilder to futz with some HTML, ... modify the text of some of the HTML::Elements. ... created the tree, it seems more efficient to walk the tree and change ...
    (comp.lang.perl.modules)
  • Re: storing the text of an HTML page
    ... I need to store the text of an HTML page. ... You say you have to modify the HTML data... ... modify the tree, then turn your tree back into a string. ...
    (comp.lang.java.programmer)
  • Re: storing the text of an HTML page
    ... I need to store the text of an HTML page. ... You say you have to modify the HTML data... ... modify the tree, then turn your tree back into a string. ...
    (comp.lang.java.programmer)
  • Re: How to draw on "Microsoft Web Browser" control?
    ... I am doing semantic analysis on the HTML DOM tree, ... Draw on existing elements doesn't change the structure of the html ... which is a subclass of CWnd. ...
    (microsoft.public.vc.mfc)
  • Re: Regular expression to find <tr> tags in 2nd level HTML tables
    ... > Not sure if the details will help, but I'm actually working in JavaScript ... > stripping out the extraneous HTML junk. ... use javascript to traverse through the DOM tree, much the same way as I ...
    (comp.lang.perl.misc)