Skip to content

Latest commit

 

History

History
21 lines (19 loc) · 1.17 KB

readme.md

File metadata and controls

21 lines (19 loc) · 1.17 KB

HTMLdoc API Reference

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