Answers for "php convert special characters to html entities"

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
0

php convert special characters to normal

iconv('utf-8', 'ascii//TRANSLIT', $text);
Posted by: Guest on September-20-2021

Code answers related to "php convert special characters to html entities"

Browse Popular Code Answers by Language