class JHtmlEmail

Utility class for cloaking email addresses

Methods

static  string
cloak( string $mail, boolean $mailto = true, string $text = '', boolean $email = true)

Simple JavaScript email cloaker

Details

static string cloak( string $mail, boolean $mailto = true, string $text = '', boolean $email = true)

Simple JavaScript email cloaker

By default replaces an email with a mailto link with email cloaked

Parameters

string $mail The -mail address to cloak.
boolean $mailto True if text and mailing address differ
string $text Text for the link
boolean $email True if text is an email address

Return Value

string The cloaked email.