emailEncode

Availability: >= 3.0

Type: Object Method

Description: Encodes email addresses.

Syntax:

string $html wproUtilities::emailEncodestring $html [, boolean $only_links );

Parameters: 

The function will return the HTML code with email addresses encoded to hide them from spam bots.

The first parameter should be the HTML code from the form post.

The second optional parameter should be set to true to encode only email links, or false to encode all email addresses. The default is true. This parameter was added in version 3.0.3.

Example:

In the following example $code holds the code sent from the form post.  

$code wproUtilities::emailEncode ($code);

NOTE: the results of this function will not be visible when viewing your code in WysiwygPro.