powered by
Replaces HTML markup. The angle braces are removed and the HTML symbol markup is replaced with equivalent symbols.
replace_html(x, symbol = TRUE, ...)
The text variable.
logical. If codeTRUE the symbols are retained with appropriate replacements. If FALSE they are removed.
FALSE
Ignored.
Returns a vector with HTML markup replaced.
Replacements for symbols are as follows:
# NOT RUN { x <- c( "<bold>Random</bold> text with symbols: < > & " '", "<p>More text</p> ¢ £ ¥ € © ®" ) replace_html(x) replace_html(x, FALSE) replace_white(replace_html(x, FALSE)) # }
Run the code above in your browser using DataLab