| count | find | findMulti | findMultiOrFalse |
| findOne | findOneOrFalse | innerHtml | innertext |
| outertext | text |
↑ Find list of nodes with a CSS selector.
Parameters:
string $selectorint|null $idxReturn:
TODO: __not_detected__↑ Find nodes with a CSS selector.
Parameters:
string $selectorReturn:
TODO: __not_detected__↑ Find nodes with a CSS selector or false, if no element is found.
Parameters:
string $selectorReturn:
TODO: __not_detected__↑ Find one node with a CSS selector.
Parameters:
string $selectorReturn:
TODO: __not_detected__↑ Find one node with a CSS selector or false, if no element is found.
Parameters:
string $selectorReturn:
TODO: __not_detected__Parameters:
string $contentbool $multiDecodeNewHtmlEntityReturn:
stringParameters: nothing
Return:
\DOMDocument↑ Return elements by ".class".
Parameters:
string $classReturn:
TODO: __not_detected__↑ Return element by #id.
Parameters:
string $idReturn:
TODO: __not_detected__↑ Return element by tag name.
Parameters:
string $nameReturn:
TODO: __not_detected__↑ Returns elements by "#id".
Parameters:
string $idint|null $idxReturn:
TODO: __not_detected__↑ Returns elements by tag name.
Parameters:
string $nameint|null $idxReturn:
TODO: __not_detected__↑ Get dom node's outer html.
Parameters:
bool $multiDecodeNewHtmlEntityReturn:
string↑ Get dom node's inner html.
Parameters:
bool $multiDecodeNewHtmlEntityReturn:
string↑ Get dom node's inner xml.
Parameters:
bool $multiDecodeNewHtmlEntityReturn:
string↑ Load HTML from string.
Parameters:
string $htmlint|null $libXMLExtraOptionsReturn:
\DomParserInterface↑ Load HTML from file.
Parameters:
string $filePathint|null $libXMLExtraOptionsReturn:
\DomParserInterface↑ Save the html-dom as string.
Parameters:
string $filepathReturn:
stringParameters:
callable $functionNameReturn:
TODO: __not_detected__↑ Get dom node's plain text.
Parameters:
bool $multiDecodeNewHtmlEntityReturn:
string↑ Get the HTML as XML or plain XML if needed.
Parameters:
bool $multiDecodeNewHtmlEntitybool $htmlToXmlbool $removeXmlHeaderint $optionsReturn:
string↑ Get the number of items in this dom node.
Parameters: nothing
Return:
int↑ Find list of nodes with a CSS selector.
Parameters:
string $selectorint $idxReturn:
\SimpleHtmlDomNode|\SimpleHtmlDomNode[]|null↑ Find nodes with a CSS selector.
Parameters:
string $selectorReturn:
\SimpleHtmlDomInterface[]|\SimpleHtmlDomNodeInterface<\SimpleHtmlDomInterface>↑ Find nodes with a CSS selector or false, if no element is found.
Parameters:
string $selectorReturn:
false|\SimpleHtmlDomInterface[]|\SimpleHtmlDomNodeInterface<\SimpleHtmlDomInterface>↑ Find one node with a CSS selector.
Parameters:
string $selectorReturn:
\SimpleHtmlDomNode|null↑ Find one node with a CSS selector or false, if no element is found.
Parameters:
string $selectorReturn:
false|\SimpleHtmlDomNode↑ Get html of elements.
Parameters: nothing
Return:
string[]↑ alias for "$this->innerHtml()" (added for compatibly-reasons with v1.x)
Parameters: nothing
Return:
string[]↑ alias for "$this->innerHtml()" (added for compatibly-reasons with v1.x)
Parameters: nothing
Return:
string[]↑ Get plain text.
Parameters: nothing
Return:
string[]↑ Returns children of node.
Parameters:
int $idxReturn:
\SimpleHtmlDomInterface|\SimpleHtmlDomInterface[]|\SimpleHtmlDomNodeInterface|null↑ Find list of nodes with a CSS selector.
Parameters:
string $selectorint|null $idxReturn:
\SimpleHtmlDomInterface|\SimpleHtmlDomInterface[]|\SimpleHtmlDomNodeInterface<\SimpleHtmlDomInterface>↑ Find nodes with a CSS selector.
Parameters:
string $selectorReturn:
\SimpleHtmlDomInterface[]|\SimpleHtmlDomNodeInterface<\SimpleHtmlDomInterface>↑ Find nodes with a CSS selector or false, if no element is found.
Parameters:
string $selectorReturn:
false|\SimpleHtmlDomInterface[]|\SimpleHtmlDomNodeInterface<\SimpleHtmlDomInterface>↑ Find one node with a CSS selector.
Parameters:
string $selectorReturn:
\SimpleHtmlDomInterface↑ Find one node with a CSS selector or false, if no element is found.
Parameters:
string $selectorReturn:
false|\SimpleHtmlDomInterface↑ Returns the first child of node.
Parameters: nothing
Return:
\SimpleHtmlDomInterface|null↑ Returns an array of attributes.
Parameters: nothing
Return:
string[]|null↑ Return attribute value.
Parameters:
string $nameReturn:
string↑ Return elements by ".class".
Parameters:
string $classReturn:
\SimpleHtmlDomInterface[]|\SimpleHtmlDomNodeInterface<\SimpleHtmlDomInterface>↑ Return element by "#id".
Parameters:
string $idReturn:
\SimpleHtmlDomInterface↑ Return element by tag name.
Parameters:
string $nameReturn:
\SimpleHtmlDomInterface↑ Returns elements by "#id".
Parameters:
string $idint|null $idxReturn:
\SimpleHtmlDomInterface|\SimpleHtmlDomInterface[]|\SimpleHtmlDomNodeInterface<\SimpleHtmlDomInterface>↑ Returns elements by tag name.
Parameters:
string $nameint|null $idxReturn:
\SimpleHtmlDomInterface|\SimpleHtmlDomInterface[]|\SimpleHtmlDomNodeInterface<\SimpleHtmlDomInterface>↑ Create a new "HtmlDomParser"-object from the current context.
Parameters: nothing
Return:
\HtmlDomParser↑ Retrieve an external iterator.
Parameters: nothing
Return:
\SimpleHtmlDomNodeInterface<\SimpleHtmlDomInterface> <p>
An instance of an object implementing <b>Iterator</b> or
<b>Traversable</b>
</p>Parameters: nothing
Return:
\DOMNode↑ Determine if an attribute exists on the element.
Parameters:
string $nameReturn:
bool↑ Get dom node's outer html.
Parameters:
bool $multiDecodeNewHtmlEntityReturn:
string↑ Get dom node's inner html.
Parameters:
bool $multiDecodeNewHtmlEntityReturn:
string↑ Get dom node's inner html.
Parameters:
bool $multiDecodeNewHtmlEntityReturn:
string↑
Nodes can get partially destroyed in which they're still an
actual DOM node (such as \DOMElement) but almost their entire
body is gone, including the nodeType attribute.
Parameters: nothing
Return:
bool true if node has been destroyed↑ Returns the last child of node.
Parameters: nothing
Return:
\SimpleHtmlDomInterface|null↑ Returns the next sibling of node and it will ignore whitespace elements.
Parameters: nothing
Return:
\SimpleHtmlDomInterface|null↑ Returns the next sibling of node.
Parameters: nothing
Return:
\SimpleHtmlDomInterface|null↑ Returns the parent of node.
Parameters: nothing
Return:
\SimpleHtmlDomInterface↑ Returns the previous sibling of node.
Parameters: nothing
Return:
\SimpleHtmlDomInterface|null↑ Remove attribute.
Parameters:
string $name <p>The name of the html-attribute.</p>Return:
\SimpleHtmlDomInterface↑ Set attribute value.
Parameters:
string $name <p>The name of the html-attribute.</p>string|null $value <p>Set to NULL or empty string, to remove the attribute.</p>bool $strictEmptyValueCheck </p>
$value must be NULL, to remove the attribute,
so that you can set an empty string as attribute-value e.g. autofocus=""
</p>Return:
\SimpleHtmlDomInterface↑ Get dom node's plain text.
Parameters: nothing
Return:
stringParameters:
string|string[]|null $value <p>
null === get the current input value
text === set a new input value
</p>Return:
string|string[]|null