R: Alternatives/approaches to read_html() + html_text() that also work on strings without HTML/XML tags
In this solution to removing HTML tags from a string, the string is passed to rvest::read_html()
to create an html_document
object and then the object is passed to rvest::html_text()
to return “HTML-less text.”