Guest User

Untitled

a guest
Jan 22nd, 2019
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. 1. Create a new snippet, title it encodeEmail and add this:
  2.  
  3. <?php
  4. $output = '';
  5. for ($i = 0; $i < strlen($email); $i++)
  6. {
  7. $output .= '&#'.ord($email[$i]).';';
  8. }
  9. return $output;
  10.  
  11.  
  12.  
  13.  
  14. 2. Use this code to output accessible and encoded email addresses:
  15.  
  16. [[!encodeEmail?email=`you@example.com.au`]]
Add Comment
Please, Sign In to add comment