diff --git a/PlancakeEmailParser.php b/PlancakeEmailParser.php index 59e6cee..f385d5e 100644 --- a/PlancakeEmailParser.php +++ b/PlancakeEmailParser.php @@ -207,7 +207,7 @@ public function getBody($returnType=self::PLAINTEXT) $boundaries = $matches[1]; // sometimes boundaries are delimited by quotes - we want to remove them foreach($boundaries as $i => $v) { - $boundaries[$i] = str_replace(array("'", '"'), '', $v); + $boundaries[$i] = trim(str_replace(array("'", '"'), '', $v)); } foreach ($this->rawBodyLines as $line) {