| html_esc {fansi} | R Documentation |
Arbitrary text may contain characters with special meaning in HTML, which may
cause HTML display to be corrupted if they are included unescaped in a web
page. This function escapes those special characters so they do not
interfere with the HTML markup generated by e.g. sgr_to_html.
html_esc(x)
x |
character vector |
x, but with "<", ">", "&", "'", and "\"" characters replaced by
their HTML entity codes, and Encoding set to UTF-8.
Other HTML functions:
in_html(),
make_styles(),
sgr_to_html()
html_esc("day > night")
html_esc("<SPAN>hello world</SPAN>")