email.php 374 B

1234567891011121314151617
  1. <?php
  2. /**
  3. * Elgg email output
  4. * Displays an email address that was entered using an email input field
  5. *
  6. * @package Elgg
  7. * @subpackage Core
  8. *
  9. * @uses $vars['value'] The email address to display
  10. *
  11. */
  12. $encoded_value = htmlspecialchars($vars['value'], ENT_QUOTES, 'UTF-8');
  13. if (!empty($vars['value'])) {
  14. echo "<a href=\"mailto:$encoded_value\">$encoded_value</a>";
  15. }