htmlspecialchars {fun} | R Documentation |
Replace HTML special characters with HTML entities
Description
The characters c("&", '"', "'", "<", ">")
will be replaced with
c("&", """, "'", "<", ">")
, respectively.
Usage
htmlspecialchars(string)
Arguments
string |
the string with (or w/o) HTML special chars |
Value
the string with special chars replaced.
Author(s)
Yihui Xie <https://yihui.org>
References
https://www.php.net/manual/en/function.htmlspecialchars.php
See Also
Examples
htmlspecialchars("<a href = 'https://yihui.org'>Yihui</a>")
# <a href = 'https://yihui.org'>Yihui</a>
[Package fun version 0.3 Index]