nchar_html: Count Text Characters in HTML

Description Usage Arguments Value Examples

View source: R/html.R

Description

Very simple implementation that will fail if there are any “>” in the HTML that are not closing tags, and assumes that HTML entities are all one character wide. Also, spaces are counted as one width each because the HTML output is intended to be displayed inside <PRE> tags.

Usage

1

Arguments

x

character

...

unused for compatibility with internal use

Value

integer(length(x)) with number of characters of each element

Examples

1
nchar_html("<a href='http:www.domain.com'>hello</a>")

diffobj documentation built on Oct. 5, 2021, 9:07 a.m.