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