| html_problems | R Documentation |
HTML parsing never fails on malformed markup: the parser repairs it as a
browser would. html_problems() lists what was repaired, which is useful
for diagnosing why a tree looks the way it does. Real pages nearly always
have some. This is not a conformance validator.
html_problems(x)
x |
A |
A data frame with one row per problem, in input order, and
columns stage ("tokenizer" or "parser"), code (a stable
package-owned name, such as "unexpected-end-tag" or
"duplicate-attr"), line and column (1-based) and byte_offset
(0-based, into the decoded UTF-8 input). At most max_errors problems
are kept (see html_limits()); attribute "truncated" is TRUE when
more occurred.
Other parsing:
html_fragment(),
html_info(),
html_limits(),
html_parse(),
zuhtml_info()
doc <- html_parse("<p>One</div><p id=a id=b>Two")
html_problems(doc)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.