File: nchar_html.Rd

package info (click to toggle)
r-cran-diffobj 0.3.5-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 2,432 kB
  • sloc: ansic: 455; javascript: 96; sh: 32; makefile: 8
file content (25 lines) | stat: -rwxr-xr-x 723 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/html.R
\name{nchar_html}
\alias{nchar_html}
\title{Count Text Characters in HTML}
\usage{
nchar_html(x, ...)
}
\arguments{
\item{x}{character}

\item{...}{unused for compatibility with internal use}
}
\value{
integer(length(x)) with number of characters of each element
}
\description{
Very simple implementation that will fail if there are any \dQuote{>} 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 \code{<PRE>} tags.
}
\examples{
nchar_html("<a href='http:www.domain.com'>hello</a>")
}