2 code examples of PHP EmailReplyParser\EmailReplyParser extracted from open source projects
public function visibleText(): ?string
{
return EmailReplyParser::parseReply($this->text());
}
public function getVisibleText() : string
{
$text = $this->getText();
if (empty($text)) {
throw new \RuntimeException('No text body is found');
}
return \EmailReplyParser\EmailReplyParser::parseReply($text);
}