html_esc {fansi} | R Documentation |
This allows displaying strings that contain them in HTML without disrupting the HTML. It is assumed that the string to be escaped does not contain actual HTML as this function would destroy it.
html_esc(x)
x |
character vector |
character vector consisting of x
, but with the "<", ">", and "&"
characters replaced by their HTML entity codes.
html_esc("day > night") html_esc("<SPAN>hello world</SPAN>")