Result Size: 625 x 571
x
 
<!DOCTYPE html>
<html>
<body>
<?php
$str = '<a href="../index.html">Go to w3schools.com</a>';
echo htmlentities($str);
?>
<p>Converting characters into entities are often used to prevent browsers from using it as an HTML element. This can be especially useful to prevent code from running when users have access to display input on your homepage.</p>
</body>
<!-- Mirrored from www.w3schools.com/php7/phptryit.asp?filename=tryphp_func_string_htmlentities by HTTrack Website Copier/3.x [XR&CO'2014], Wed, 05 Jun 2019 14:40:45 GMT -->
</html>
×

Report a Problem: