> Actually, something I would feel would be very useful is if it could > return an XML::LibXML::DocumentFragment object. > > I tend to use XML::LibXML to parse user input and insert in the > document, which is then going through some XSLT, and since you've > allready parsed stuff, it seems like a waste to parse again.
Ooooh - that sounds nasty :) It sounds like it needs a subclass like HTML::StripScripts::Parser and HTML::StripScripts::Regex So XML::LibXML would do the parsing, then HTML::StripScripts::LibXML would feed it token by token to HTML::StripScripts, which could then return the parsed HTML, to be constructed into a DocumentFragment by the subclass. > > So that's my feature request! :-) If you send me an example of (the interface) how you would like to use it, I'll see what I can do. We'll take it off this list, because I feel that I have been sufficiently off topic already Clint > > Cheers, > > Kjetil