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