Answers for "how to detect special characters in php to decode"

PHP
1

php decode html special characters

$str = "This is some <b>bold</b> text.";
echo htmlspecialchars_decode($str);
// out will be like:
// This is some <b>bold</b> text.
Posted by: Guest on June-11-2021
0

php convert special characters to normal

$str = "d&#039;&eacute;tudes"; //string with special characters
$normal_str = html_entity_decode($str, ENT_QUOTES);  //d'études(studies in english)
Posted by: Guest on September-10-2021

Code answers related to "how to detect special characters in php to decode"

Browse Popular Code Answers by Language