Remove HTML tags from a string.

clean_html(x)

Arguments

x

A character vector.

Value

character, x with HTML tags removed.

See also

Examples

library(salinasr) html <- "<html> <body> <p>This is a paragraph.</p> <p>This is another paragraph.</p> </body> </html>" clean_html(html)
#> [1] "This is a paragraph. This is another paragraph."