Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

htmlspecialchars_decode (PHP 5 >= 5.1.0, PHP 7, PHP 8) htmlspecialchars_decode — Convert special HTML entities back to characters

<?php
$str = "<p>this -&gt; &quot;</p>
";

echo htmlspecialchars_decode($str);

// note that here the quotes aren't converted
echo htmlspecialchars_decode($str, ENT_NOQUOTES);
?>
 
PREVIOUS NEXT
Tagged: #PHP #PHP #Convert #special #HTML #entities #characters
ADD COMMENT
Topic
Name
9+6 =