Description Usage Arguments Value Author(s) References See Also Examples
View source: R/htmlspecialchars.R
The characters c("&", '"', "'", "<", ">") will be replaced with
c("&", """, "'", "<", ">"), respectively.
1 | htmlspecialchars(string)
|
string |
the string with (or w/o) HTML special chars |
the string with special chars replaced.
Yihui Xie <http://yihui.name>
This function is copied directly from https://github.com/yihui/fun/blob/master/R/htmlspecialchars.R.
1 2 | htmlspecialchars("<a href = 'http://yihui.name'>Yihui</a>")
# <a href = 'http://yihui.name'>Yihui</a>
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.