Re: [xml] Error on parsing HTML with libxml
- From: Liam R E Quin <liam holoweb net>
- To: André Rothe <andre rothe zks uni-leipzig de>, xml gnome org
- Subject: Re: [xml] Error on parsing HTML with libxml
- Date: Fri, 17 Aug 2018 22:14:27 -0400
On Fri, 2018-08-17 at 14:42 +0200, André Rothe wrote:
https://3v4l.org/O0iEf
Try changing
...writeln('</td>');
to
...writeln('<' + '/td>');
and see if that helps; or use a CDATA section,
<script><![CDATA[
//..
]]></script> to escape the </td> markup from the HTML parser.
Although it may depend on what the missing //... lines look like,
assuming this is not the complete source.
Better yet, don't use document.write at all, and switch to more modern
practices :)
I'm not sure there's actually a bug here; if you feed the parser tag
soup, expect a mess. Keep zPHP, JavaScript, HTML, CSS in separate files
and life will probably be simpler.
Liam
--
Liam Quin - web slave for https://www.fromoldbooks.org/
with fabulous vintage art and fascinating texts to read.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]