safe_mailto()

safe_mailto($email, $title = '', $attributes = '')

Parameters:
  • $email (string) – E-mail address
  • $title (string) – Anchor title
  • $attributes (mixed) – HTML attributes
Returns:

A spam-safe “mail to” hyperlink

Return type:

string

Identical to the mailto() function except it writes an obfuscated version of the mailto tag using ordinal numbers written with JavaScript to help prevent the e-mail address from being harvested by spam bots.

doc_CodeIgniter
2016-10-15 16:32:37
Comments
Leave a Comment

Please login to continue.