Lines Matching defs:entities
11 * Encodes UTF-8 characters to HTML entities
37 * Decodes HTML entities to UTF-8 characters
40 * The entities flag defaults to only decoding numeric entities.
41 * Pass HTML_ENTITIES and named entities, including & < etc.
52 * @param boolean $entities decode name entities in addtition to numeric ones
53 * @return string UTF-8 encoded string with numeric (and named) entities replaced.
55 public static function fromHtml($str, $entities = false)
57 if (!$entities) {
103 * Decodes numeric HTML entities to their correct UTF-8 characters