, , . PHP Simple HTML DOM Parser, , :
$html = file_get_html('http://www.domain.com/');
$textarea = $html->find('textarea[id=body]');
$contents = $textarea->innertext;
echo $contents;
file_get_contents(), :
$raw_html = file_get_contents('http://www.domain.com/');
$html = str_get_html($raw_html);
...
file_get_contents(), outertext, , HTML-, -:
$html = file_get_html('http://www.domain.com/');
$raw_html = $html->outertext;
:
preg_match('~<textarea id="body".*?>(.*?)</textarea>~', file_get_contents('http://www.domain.com/'), $matches);
echo $matches[1][0]; // Outputs 'Hello World!'
, , .