-
Is it possible that DOM (and as a result SimpleHtmlDom too) is failing due to an incredibly invalid input? There is no output (neither from SHD or DOM).
The site I am talking about is http://www.varuna.ro/. The W3C Validator found 1493 Errors!!!
I managed to process the html by using some substr magic before SimpleHtmlDom.
Am I doing something wrong, since SHD is supposed to work with...
2010-01-03 14:41:08 UTC by armin-san
-
Given a table of html-encoded email addresses:
name&64;domain.com
some associated text
name&64;domain.com
...
The following code prints only the "name" portion of the td content (for all listed cases). The "&64;domain.com" is dropped entirely.
$results->file_get_html($list_url);
$rows = $results->find("tr");...
2009-12-29 16:17:41 UTC by mystilon
-
If restab is an array, then var_dump should display it - var_dump prints out the contents of every other kind of array.
Why am I getting this RECURSION text in the middle of my dump of the array variable using var_dump? (yes, I realise that it is in a never-ending loop of dumping the variable, and this is what the recursion word means in this context.)
2009-12-28 23:53:57 UTC by ocpaul20
-
In the below unordered list, I want to take the item with the class "slctd", remove the anchor around the content text and add a bold tag instead.
How can I do that please? Thanks.
About me
2009-12-28 22:01:37 UTC by pillory
-
Oops, sorry. I meant:
$restab[0]->plaintext
$restab[0]->xmltext
$restab is an array ;-)
2009-12-28 21:17:09 UTC by killerbees19
-
Don't use var_dump or var_export - if you want to debug it, use echo!
Back to your problem: You can use this variables:
$restab->plaintext (the text bewteen the tags)
$restab->xmltext (everything unmodified between the tags)
2009-12-28 21:15:35 UTC by killerbees19
-
Not directly, because scripts, comments etc. are removed. Look into the **simple__html__dom.php** file and search "script" - maybe you can change the parser. Good luck ;-)
2009-12-28 21:03:02 UTC by killerbees19
-
I encountered memory problem, Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 1992 bytes)
in simple_html_dom.php on line 791
Can you tell me please how to solve this problem. This error makes my all hard work dead.
2009-12-28 07:34:45 UTC by udhamspower
-
is it possible to get the data inside a script tag?
abc
function jcall(){alert(1)
.
2009-12-22 12:06:44 UTC by mithunp
-
Is there any way to include the user agent string along with the request send by PHP Simple HTML DOM Parser?.
2009-12-22 10:50:29 UTC by https://www.google.com/accounts