string hideEmailWithJsDocumentWrite(
string
$email, [string
$name = NULL], [string
$cssClass = NULL])
|
|
uses javascripts document.write() function to spit out the address as link.
non-js browsers will see a readable version of the address using the noscript tag.
this is browser-safe and emailspider safe. most, like 98% of the web users won't notice a difference, and most, like 99.9% of the email spiders won't catch the address. use it!
Tags:
Parameters:
void toPronounceable(
string
$email, [mixed
$lang = 'en'])
|
|
converts the given email address into a "pronounceable" string.
these languages are supported: (texts are written in lower case here) CHARACTER LANGUAGE @ . _ - 'en' at dot underscore dash 'de' at punkt unterstrich strich 'de2' affenschwanz punkt unterstrich minus
you can pass an array (vector with 4 elements) as param 2 ($lang) to use your own text. make sure you use a space in front and at the end of the strings, or feel free to use something else.
EXAMPLES: (the results are not html-encoded here for better reading) htmlEncode('tom.jones@hotmail.com') => tom DOT jones AT hotmail DOT com htmlEncode('tom.jones@hotmail.com', 'de2') => tom PUNKT jones AFFENSCHWANZ hotmail PUNKT com
Tags:
Parameters: