pub fn htmlentities(s: &[u8], flags: HtmlFlags, double_encode: bool) -> Vec<u8> ⓘExpand description
PHP htmlentities($string, $flags, 'UTF-8', $double_encode): like
htmlspecialchars but every character with a named entity in the
doctype’s table is converted (HTML 4.01 and XHTML: 253 entities, HTML5:
1511 including two-character ones such as fj; XML 1.0: the basic ones).