PHP Manualhtmlspecialchars_decode(PHP 5 >= 5.1.0) htmlspecialchars_decode — Convert special HTML entities back to characters Description
string htmlspecialchars_decode
( string
$string
[, int $flags = ENT_COMPAT | ENT_HTML401
] )This function is the opposite of htmlspecialchars(). It converts special HTML entities back to characters.
The converted entities are: &,
" (when Parameters
Return ValuesReturns the decoded string. Changelog
Examples
Example #1 A htmlspecialchars_decode() example
<?php The above example will output: <p>this -> "</p> <p>this -> "</p> See Also
![]() |
PHP-Index
New Tutorial entries
|