Create New Item
Item Type
File
Folder
Item Name
Search file in folder and subfolders...
Are you sure you want to rename?
SAFE MODE
/
application
/
vendor
/
willdurand
/
email-reply-parser
/
src
/
EmailReplyParser
:
EmailReplyParser.php
Advanced Search
Upload
New Item
Settings
Back
Back Up
Advanced Editor
Save
<?php /** * This file is part of the EmailReplyParser package. * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * @license MIT License */ namespace EmailReplyParser; use EmailReplyParser\Parser\EmailParser; /** * @author William Durand <william.durand1@gmail.com> */ class EmailReplyParser { /** * @param string $text An email as text. * * @return Email */ public static function read($text) { $parser = new EmailParser(); return $parser->parse($text); } /** * @param string $text An email as text. * * @return string */ public static function parseReply($text) { return static::read($text)->getVisibleText(); } }