clean_html: Remove HTML tags from a string.

Description Usage Arguments Value Author(s) See Also Examples

View source: R/utils.R

Description

Remove HTML tags from a string.

Usage

1

Arguments

x

A character vector.

Value

character, x with HTML tags removed.

Author(s)

Brendan Knapp brendan.g.knapp@gmail.com

See Also

stringr::str_replace_all, stringr::str_squish(), stringr::str_trim()

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
library(salinasr)

html <- "<html>
         <body>
         <p>This is a paragraph.</p>
         <p>This is another paragraph.</p>
         </body>
         </html>"

clean_html(html)

knapply/salinasr documentation built on May 27, 2019, 2:09 p.m.