htmlspecialchars.php : htmlspecialchars « HTML « PHP






htmlspecialchars.php

 
<?php
   $input = "<<enough>>";
   echo htmlspecialchars($input);
?>
  
  








Related examples in the same category

1.htmlspecialchars() function converts a select few characters in the context of HTML into their equivalent HTML entities.
2.Escaping HTML entities
3.UTF-8 HTML encoding