Re: perl, HTML::Tidy, clean ...
Andrej <[email protected]> Mon, 11 Jun 2012 12:59:32 +1200
| Newsgroups | gmane.comp.web.html-tidy.user |
|---|---|
| Message-ID | <CACMx3pPU68J=HYTpTUYLbFpMMDAL-JY20KNEHmvT5UhitSQQaA@mail.gmail.com> |
On 11 June 2012 12:38, Bjoern Hoehrmann <[email protected]> wrote: Hi Bjoern, Thanks for your response. >>I'm using the following options w/ tidy ... >> tidy_mark => 0, >> output_encoding => 'utf8', >> input_encoding => 'utf8', >> drop_proprietary_attributes => 1, >> output_xhtml => 1, >> clean => 1, >> hide_endtags => 1, > > You do not want to use hide_endtags while using output_xhtml. > >>For some wiki entries I get >>HTML parser error : Unexpected end tag : p >>Lorem ipsum.</li> </ul></p> > > That looks like a libxml2 error, not a HTML Tidy error message. Oh ... I never thought about that possibility since it immediately follows: Use of uninitialized value in sprintf at /usr/lib/perl5/HTML/Tidy/Message.pm line 103, <STDIN> line 2. (44:1) Warning: discarding unexpected </string> Use of uninitialized value in sprintf at /usr/lib/perl5/HTML/Tidy/Message.pm line 103, <STDIN> line 2. (1:1) Warning: inserting missing 'title' element HTML parser error : Unexpected end tag : p Lorem ipsum.</li> </ul></p> ^ HTML parser error : Unexpected end tag : p I will investigate. Cheers, Andrej