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 704 views
2 answers 343 views
2 answers 375 views
3 answers 463 views
...