phpquery
PhpQuery and replaceWith, How to?
I\'m using PhpQuery and I need to replace an \"iframe\" for another tag The html file have an Iframe <div id=\"content\">[详细]
2023-02-11 14:13 分类:问答PHPquery lib. and parsing XML
I started using the phpquery thingy, but I got lost in all that documentation. In case someone does not know what the hell I am talking about: http://code.google.com/p/phpquery/[详细]
2023-02-10 01:48 分类:问答Concatenate HTML tables with PHP DOMDocument
I have a whole bunch of large HTML documents with tables of data inside and I\'m looking to write a script which can process an HTML file, isolate thetags and their contents, then concatenate all the[详细]
2023-02-08 20:59 分类:问答How do I generate an array of the items from a list (ul) tag?
From the following code: <ol> <li>Coffee</li> <li>Tea</li> <li>Milk</li>[详细]
2023-02-08 02:34 分类:问答How to remove an HTML tag with PHPQuery?
Update1: With the full source code: $html1 = \'<div class=\"pubanunciomrec\" style=\"background:#FFFFFF;\"><script type=\"text/javascript\"><!--[详细]
2023-02-04 12:09 分类:问答How does PhpQuery work? Trying to get the value of <title> tag
I\'m new to phpQuery. I need to achieve the simple task of getting the content of the HTML TITLE tag of a webpage. In this case I\'m trying to get the title content of \"Yahoo!\" that should be \"Yaho[详细]
2023-02-02 16:24 分类:问答Replace element using phpquery (php version of jquery)
I want to replace all <span> tags with <p> using phpquery. What is wrong with my code? It finds the span but the replaceWith function is not doing anything.[详细]
2023-01-14 13:25 分类:问答Selecting peculiar XML tags with phpQuery
phpQuery is a really nice tool which has helped me tremendously in the past parse well-formed XHTML and XML documents, but I have recently run into a problem trying to select elements that have colons[详细]
2022-12-28 14:59 分类:问答How do I prevent the query class from processing the question marks in my text strings?
Rather new to php, so sorry if this seems stupid. I\'m really copying a lot of this from previously written code from other developers at my company.[详细]
2022-12-22 11:35 分类:问答jQuery filtering and traversing (phpQuery)
I am trying to parse data off a page using phpquery(almost same as jquery), I need code to get these 2 things,[详细]
2022-12-18 21:47 分类:问答