PHP Tutorial
PHP htmlspecialchars_decode() function, run and write PHP code.
PHP htmlspecialchars_decode() function - online editor.
htmlspecialchars_decode — Convert special HTML entities back to characters
htmlspecialchars_decode() is the opposite of htmlspecialchars(). It converts special HTML entities back to characters.
The converted entities are: &, " (when ENT_NOQUOTES is not set), ' (when ENT_QUOTES is set), < and >.
HTML entities that will be decoded are:
Syntax:
htmlspecialchars_decode(string,flags);
Tags: htmlspecialchars_decode() is the opposite of htmlspecialchars(). It converts special HTML entities back to characters.
The converted entities are: &, " (when ENT_NOQUOTES is not set), ' (when ENT_QUOTES is set), < and >.
HTML entities that will be decoded are:
- " becomes " (double quote)
- & becomes & (ampersand)
- ' becomes ' (single quote)
- > becomes > (greater than)
- < becomes < (less than)
Syntax:
htmlspecialchars_decode(string,flags);
Example : htmlspecialchars_decode
<?php
$e_str = "<p>this "text" -> " </p> \n";
echo htmlspecialchars_decode($e_str);
echo htmlspecialchars_decode($e_str, ENT_NOQUOTES);
?>
PHP htmlspecialchars_decode() function 13
PHP htmlspecialchars_decode() function
PHP Functons
PHP count() FunctionPHP define() function
PHP empty() Function
PHP explode() function
PHP html_entity_decode() function
PHP htmlentities() function
PHP htmlspecialchars_decode() function
PHP htmlspecialchars() function
PHP implode() function
PHP isset() Function
PHP lcfirst() function
PHP ltrim() function
PHP md5() function
PHP print() function
PHP printf() function
PHP rtrim() function
PHP similar_text() function
PHP str_repeat() function
PHP str_replace() function
PHP str_split() function
PHP strcmp() function
PHP strip_tags() function
PHP strlen online function
PHP strrchr() Function
PHP strstr() function
PHP strtolower() function
PHP strtoupper() function
PHP substr() function
PHP trim() function
PHP ucfirst() function