Add more unit tests for the legacy Mail class

This commit is contained in:
Kijin Sung 2016-05-23 21:58:37 +09:00
parent c8c319b988
commit 53169710a7
2 changed files with 17 additions and 1 deletions

View file

@ -115,7 +115,7 @@ class Mail extends Rhymix\Framework\Mail
*/
public function getPlainContent()
{
return chunk_split(base64_encode(str_replace(array("<", ">", "&"), array("&lt;", "&gt;", "&amp;"), $this->message->getBody())));
return chunk_split(base64_encode(htmlspecialchars($this->message->getBody())));
}
/**