obfuscate() public method

Obfuscate a string to prevent spam-bots from sniffing it.
public obfuscate ( string $value ) : string
$value string
return string
 /**
  * Return the obfuscated email.
  *
  * @return null|string
  */
 public function obfuscated()
 {
     if (!($email = $this->object->getValue())) {
         return null;
     }
     return $this->html->obfuscate($email);
 }
Example #2
0
 /**
  * Obfuscate a string to prevent spam-bots from sniffing it.
  *
  * @param string $value
  * @return string 
  * @static 
  */
 public static function obfuscate($value)
 {
     return \Collective\Html\HtmlBuilder::obfuscate($value);
 }