creativedutchmen/email_template_manager — pull request #59 by wjn (2013-07-09 03:37:09+00:00)
Title: Allows for apostrophe in the email subject

The `$entities` may be expanded to include other encoded values other than `'` as you wish.

public function disableOutputEscaping($string)
{
$entities = array(''' => "'");

foreach($entities as $escaped => $value)
{
if(preg_match("`$escaped`", $string))
{
$string = preg_replace("`$escaped`", $value, $string);
}
}

return $string;
}