JHtmlEmail

Utility class for cloaking email addresses

abstract
since

1.5

package

Joomla.Libraries

Methods

cloak

Simple JavaScript email cloaker

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

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

since

1.5

Arguments

$mail

stringThe -mail address to cloak.

$mailto

booleanTrue if text and mailing address differ

$text

stringText for the link

$email

booleanTrue if text is an email address

Response

stringThe cloaked email.

convertEncoding

Convert encoded text

convertEncoding(string $text) : string
static
since

1.5

Arguments

$text

stringText to convert

Response

stringThe converted text.