You are here

function invisimail_encoder_html_entities_encode in Invisimail 7

Encoding callback for the html_entities encoder.

1 string reference to 'invisimail_encoder_html_entities_encode'
invisimail_invisimail_encoder_info in ./invisimail.module
Implements hook_invisimail_encoder_info().

File

./invisimail.module, line 500
This module provides a filter that will search content for email addresses and replace them with their ascii equivalents before display. This is not a complete protection from spam harvesters, but it is some help.

Code

function invisimail_encoder_html_entities_encode($string, $settings = array(), $is_link = FALSE) {
  $encode = invisimail_encode_html($string);
  if (isset($settings['link']) && $settings['link'] && !$is_link) {
    $encode = '<a href="' . INVISIMAIL_MAILTO_ASCII . "{$encode}\">{$encode}</a>";
  }
  return $encode;
}