Skip to content

Instantly share code, notes, and snippets.

@rmdort
Created December 20, 2011 17:26
Show Gist options
  • Select an option

  • Save rmdort/1502397 to your computer and use it in GitHub Desktop.

Select an option

Save rmdort/1502397 to your computer and use it in GitHub Desktop.
Encoding Email in a Expression Engine Field
function filter_email_in_entry(){
$this->EE=& get_instance();
$this->EE->load->library('typography');
$this->EE->typography->initialize();
$prefs = array(
'text_format' => 'xhtml',
'html_format' => 'all',
'auto_links' => 'y',
'allow_img_url' => 'y'
);
$str = $this->EE->typography->parse_type($this->_get_param('field'), $prefs);
return $str;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment