| html_info | R Documentation |
Information about a parsed document
html_info(x)
x |
A |
An object of class zuhtml_doc_info: a list with
type: "document" or "fragment";
context: a fragment's context element, NA for a document;
nodes, attributes: counts;
native_bytes: memory the document owns, outside R's heap;
parse_peak_bytes: the most memory the parser held at once;
input_bytes: size of the decoded UTF-8 input;
encoding: the encoding the input was decoded from;
encoding_source: where that encoding came from: "bom" (a
byte-order mark), "argument" (the encoding argument), "meta"
(a <meta> declaration), "default" (none of these, so UTF-8), or
"string" for character input, which is already decoded;
base_url: the base_url given to html_parse(), or NA;
quirks_mode: "no-quirks", "quirks" or "limited-quirks", as
the doctype selected;
problems: the number of parse problems kept, and
problems_truncated: whether more occurred than max_errors.
Other parsing:
html_fragment(),
html_limits(),
html_parse(),
html_problems(),
zuhtml_info()
html_info(html_parse("<!DOCTYPE html><title>t</title><p>Hello"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.