This document describes how to configure and use the HTMLdoc object.
Method | Description |
---|---|
__construct() |
Constructs an HTMLdoc object |
open() |
Open an HTML document from a URL or stream |
load() |
Load HTML from a string |
find() |
Find elements within the documents |
eq() |
Filter elements to the selected index |
first() |
Filter elements by the first element |
last() |
Filter elements by the last element |
attr() |
Retrieve the value of an attribute |
text() |
Extract text from an HTMLdoc |
append() |
Append HTML to the selected nodes |
prepend() |
Prepend HTML to the selected nodes |
remove() |
Remove nodes from a document |
minify() |
Minify the HTMLdoc |
html() |
Render the document as HTML |
save() |
Save as a file or output as a string |