Learn R Programming

diffobj (version 0.3.6)

nchar_html: Count Text Characters in HTML

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

nchar_html(x, ...)

Value

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

Arguments

x

character

...

unused for compatibility with internal use

Examples

Run this code
nchar_html("hello")

Run the code above in your browser using DataLab