add plugin
This commit is contained in:
@@ -35,9 +35,6 @@ use phpQueryObject;
|
||||
* @method Elements filterCallback($callback,$_skipHistory)
|
||||
* @method Elements filter($selectors,$_skipHistory)
|
||||
* @method load($url,$data,$callback)
|
||||
* @method css()
|
||||
* @method show()
|
||||
* @method hide()
|
||||
* @method Elements trigger($type,$data)
|
||||
* @method Elements triggerHandler($type,$data)
|
||||
* @method Elements bind($type,$data,$callback)
|
||||
@@ -199,4 +196,13 @@ class Elements
|
||||
return trim($item->html());
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* @return phpQueryObject
|
||||
*/
|
||||
public function getElements(): phpQueryObject
|
||||
{
|
||||
return $this->elements;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -33,10 +33,10 @@ class Query
|
||||
return $this->html;
|
||||
}
|
||||
|
||||
public function setHtml($html)
|
||||
public function setHtml($html, $charset = null)
|
||||
{
|
||||
$this->html = value($html);
|
||||
$this->document = phpQuery::newDocumentHTML($this->html);
|
||||
$this->document = phpQuery::newDocumentHTML($this->html,$charset);
|
||||
return $this->ql;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user