Source Code:
(back to article)
<?php $string = "Hello World!"; $encoded_string = htmlentities($string, ENT_COMPAT | ENT_HTML401, "UTF-8"); echo $encoded_string; ?>
Result:
Report an issue