mirror of https://git.sr.ht/~hrbrmstr/hgr
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
691 B
20 lines
691 B
% Generated by roxygen2: do not edit by hand
|
|
% Please edit documentation in R/clean.r
|
|
\name{clean_text}
|
|
\alias{clean_text}
|
|
\title{Remove all tags from a document}
|
|
\usage{
|
|
clean_text(doc)
|
|
}
|
|
\arguments{
|
|
\item{doc}{atomic character vector (i.e. plain text) or an \code{html_document}}
|
|
}
|
|
\value{
|
|
atomic character vector of cleaned text
|
|
}
|
|
\description{
|
|
This is designed to be run on the \code{$content} component of the \code{data.frame} returned
|
|
by \code{just_the_facts()}. It can be run on any \code{htmnl_document} or atomic character vectors
|
|
(which it will parse into an \code{html_document}) and it will return an atomic character
|
|
vector of only plain text (i.e. it will remove all tags).
|
|
}
|
|
|