Load HTML text from Input and unify the resulting DOM structure
with DOM. Options are passed to load_structure/3, after adding
the following default options:
- Pass the DTD for HTML as obtained using
- Current dialect from the Prolog flag
- Most HTML encountered in the wild contains errors. Even in the
context of errors, the resulting DOM term is often a
reasonable guess at the intent of the author.
You may also want to use the library(http/http_open) to support
loading from HTTP and HTTPS URLs. For example:
load_html_url(URL, DOM) :-
load_html(URL, DOM, ).