On Wednesday, March 27, 2013 at 1:28 PM, Vic Ktor wrote:
Hi Matt,I'm trying libraries for manipulating HTML for few days and I think QueryPath is the best! Great Job!I'm parsing with it a fragment of HTML code. The problem is that it makes some optimisations to the code that are not valid in HTML.For example an empty div like this:<div id="some-id"></div>after working with QueryPath, it becomes:<div id="some-id" />This may be valid in XHTML but for sure is not valid in HTML. I just want to leave it unchanged. Is it possible? I tried with both function htmlqp() and qp() but the result is the same.Thank you!--
You received this message because you are subscribed to the Google Groups "support-querypath" group.
To unsubscribe from this group and stop receiving emails from it, send an email to support-queryp...@googlegroups.com.
To post to this group, send email to support-...@googlegroups.com.
Visit this group at http://groups.google.com/group/support-querypath?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
echo qp('<div id="a"><div id="b"></div></div>', '#b')->html();�
� � will output this:
<div id="b"/> and I believe this is not valid HTML 4.x.
I've tried also Ganon. It would be my second choice. It is also fast but it doesn't have so much functions as QueryPath. They say it supports HTML5.�
On Wednesday, March 27, 2013 10:52:27 PM UTC+2, Matt wrote:
What are you using to generate the output? writeHTML() and html() should create valid HTML 4.x. writeXML() and xml() will output XHTML. PHP still lags behind on HTML 5, so outputting HTML 5 currently requires post-processing.
I've looked at a few HTML5 libraries for PHP, but haven't found one that uses DOM. I'd love to get HTML 5 support into QP, though. So if you have any recommendations�.
Matt
--�
On Wednesday, March 27, 2013 at 1:28 PM, Vic Ktor wrote:
Hi Matt,
I'm trying libraries for manipulating HTML�for few days�and I think�QueryPath�is the best! Great Job!
I'm parsing with it a fragment of HTML code. The problem is that�it makes some optimisations to the code that are not valid in HTML.
For example an empty div like this:
� � <div id="some-id"></div>
after working with QueryPath, it becomes:
� � <div id="some-id" />
This may be valid in XHTML but for sure is not valid in HTML. I just want to leave it unchanged. Is it possible? I tried with both function�htmlqp() and qp() but the result is the same.
Thank you!--
You received this message because you are subscribed to the Google Groups "support-querypath" group.
To unsubscribe from this group and stop receiving emails from it, send an email to support-queryp...@googlegroups.com.
To post to this group, send email to support-...@googlegroups.com.
Visit this group at http://groups.google.com/group/support-querypath?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
�
�
--
You received this message because you are subscribed to the Google Groups "support-querypath" group.
To unsubscribe from this group and stop receiving emails from it, send an email to support-queryp...@googlegroups.com.
To post to this group, send email to support-...@googlegroups.com.
Visit this group at http://groups.google.com/group/support-querypath?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
�
�
--
--