napoler / ganon

Automatically exported from code.google.com/p/ganon
0 stars 0 forks source link

Get DOM from text/string? #53

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Can ganon do something like this on PHP Simple DOM Parser:
$html = str_get_html('<div>1</div> <div>2</div> <div>3</div> <div>4</div> 
<div>5</div>');

I'm trying to do this and getting error. It's:
Warning: file_get_contents( <div>1</div> <div>2</div> <div>3</div> <div>4</div> 
<div>5</div> ): failed to open stream: Invalid argument in....(PHP file 
location).

Original issue reported on code.google.com by Manhhailua on 26 Jan 2014 at 3:05

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Use str_get_dom()

Original comment by bartek12...@gmail.com on 3 Feb 2014 at 11:49