PHP » GoLang |
login |
register |
about
|
GoLang html_entity_decode
request it (527)
GoLang replacement for PHP's html_entity_decode
[edit | history]
html_entity_decode(PHP 4 >= 4.3.0, PHP 5, PHP 7) html_entity_decode — Convert all HTML entities to their applicable characters Description
string html_entity_decode
( string
$string
[, int $flags = ENT_COMPAT | ENT_HTML401
[, string $encoding = ini_get("default_charset")
]] )
html_entity_decode() is the opposite of
htmlentities() in that it converts all HTML entities
in the More precisely, this function decodes all the entities (including all numeric entities) that a) are necessarily valid for the chosen document type — i.e., for XML, this function does not decode named entities that might be defined in some DTD — and b) whose character or characters are in the coded character set associated with the chosen encoding and are permitted in the chosen document type. All other entities are left as is. Parameters
Return ValuesReturns the decoded string. Changelog
Examples
Example #1 Decoding HTML entities
<?php Notes
See Also
|
more
Recently updated
more
Most requested
more
Last requests
|