Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW

Re^3: Encoding/decoding question

by mirod (Canon)
on Sep 13, 2011 at 08:36 UTC ( #925645=note: print w/replies, xml ) Need Help??

in reply to Re^2: Encoding/decoding question
in thread Encoding/decoding question

You can use HTML::TreeBuilder to parse the HTML, then output it in XHTML, using the as_XML method, which works most of the time. It may not help with the encoding problem though, especially if the HTML lies about its encoding. XML::Twig can do this for you BTW, so in fact you may not need to use tidy at all, just install HTML::TreeBuilder and then use parsefile_html to parse the HTML.

Also HTML::Tidy uses a fork of tidy, and may be worth a try.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://925645]
[marto]: lazyweb Q: so an IE window apparently opened via JS with toolbars=no, all other IE instances closed. Click a URL in an email or whatever, and it doesn't open a new window or tab.
[marto]: does JS lock down windows created via to prevent this?
Discipulus ignores..
Discipulus IE just maps to id est in my mind .. ;=)

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (6)
As of 2018-03-21 11:41 GMT
Find Nodes?
    Voting Booth?
    When I think of a mole I think of:

    Results (267 votes). Check out past polls.