Show Output
Convert HTML Entities Back to Characters in PHP
amazing story."; // Encoding the string $encoded_str = htmlentities($str); echo $encoded_str . "
"; // Decoding the string $decoded_str = html_entity_decode($encoded_str); echo $decoded_str; ?>