AgerNic.com
Start write and run your php code online
HOME Editor | PHP Exemples | PHP Functions |
WEB TEMPLATES | EXAMPLES
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:

  • &quot; becomes " (double quote)
  • &amp; becomes & (ampersand)
  • &#039; becomes ' (single quote)
  • &gt; becomes > (greater than)
  • &lt; becomes < (less than)


Syntax:
htmlspecialchars_decode(string,flags);

Example : htmlspecialchars_decode

 <?php 
$e_str = "<p>this &quot;text&quot; -&gt; &quot; </p> \n";

echo htmlspecialchars_decode($e_str);

echo htmlspecialchars_decode($e_str, ENT_NOQUOTES);
?>


Tags:
PHP htmlspecialchars_decode() function 13

PHP htmlspecialchars_decode() function

PHP Functons
PHP count() Function

PHP 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