Taitava\CloakEmail\CloakEmail
Synopsis
class CloakEmail
{
- // members
- private static string $mode = 'simple';
- private static boolean $convert_page_content = false;
- private static boolean $template_insert_links = false;
- private static boolean $page_insert_links = false;
- private static string $at = ' at ';
- private static string $dot = ' dot ';
- private static string $hard_noscript_error = 'JavaScript must be turned on in order to see this email address.';
- private static bool $purge_mailto_links = true;
- // methods
- public static void Cloak()
- public static void CloakAll()
- public static void RequireJavaScript()
- public static void getOptions()
Hierarchy
Uses
- SilverStripe\Core\Config\Configurable
Members
private
- $at
- $convert_page_content
- $dot
- $hard_noscript_error
- $mode
- $page_insert_links
- $purge_mailto_links
—
Taitava\CloakEmail\bool
Whether or not to remove any mailto links before converting email addresses. This prevents the conversion from breaking the link HTML, and if you set page_insert_links or template_insert_links to true, the purged links will be recreated - but their anchor text will be replaced with the email address itself even if it were something different before the conversion! - $template_insert_links