1
我試圖嘗試搶純文本從<font size="3" color="blue">
內...它不是拿起字體標籤,雖然它不工作,如果我這樣做「字體」,3但也有網站上的很多字體標籤,我想讓搜索更具體。有可能在標籤上有多個屬性?PHP簡單的HTML DOM - 標籤ATTRIB
<?php
include('simple_html_dom.php');
$html = new simple_html_dom();
$html = file_get_html('http://cwheel.domain.com/');
##### <font size="3" color="blue">Certified Genuine</font>
$element = $html->find("font[size=3][color=blue]", 0);
echo $element-> plaintext . '<br>';
$html->clear();
?>