Escape HTML char : HTML String « HTML « PHP





Escape HTML char

<?php
   $input = "I just can't get <<enough>> of PHP!";
   echo htmlspecialchars($input);
?>


           
       

Related examples in the same category

1.HTML tag strip
2.strip_tags: strip tags from html string