How to convert special HTML entities back to characters in PHP

1 Answer

0 votes
$str = "I'll be <b>"back & The Terminator"</b>";
 
echo htmlspecialchars_decode($str, ENT_QUOTES);
 



/*
run:

I'll be <b>"back & The Terminator"</b>

*/

 



answered Jun 16, 2022 by avibootz

Related questions

4 answers 487 views
2 answers 199 views
2 answers 232 views
3 answers 317 views
...