get_html_translation_table: encode : get_html_translation_table « HTML « PHP






get_html_translation_table: encode

 
<?php
   $string = "<>";
   $translate = get_html_translation_table(HTML_ENTITIES);
   echo strtr($string, $translate);
?>
  
  








Related examples in the same category

1.get_html_translation_table() translates text to its HTML equivalent.
2.get html translation table: decode