GGAMI.NET

php HtmlDomParser <script> 태그에서 찾기

Updated on

$dom = HtmlDomParser::str_get_html($responseBody); $scripts = $dom->find('script'); foreach ($scripts as $script) { ray($script->plaintext); }

$dom->find('script');로 script 태그만 찾아서 처리할 수 있다.

다른 글