Skip to content

Commit

Permalink
Removed twig tag string replace
Browse files Browse the repository at this point in the history
Twig tags don’t get evaluated
  • Loading branch information
Tyler committed Mar 26, 2018
1 parent 118291e commit 0e3b6cb
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/Mailer.php
Original file line number Diff line number Diff line change
Expand Up @@ -209,10 +209,6 @@ public function compileHtmlBody(string $textBody): string
{
$html = Markdown::process($textBody);

// Prevent Twig tags from getting parsed
// TODO: probably safe to remove?
$html = str_replace(['{%', '{{', '}}', '%}'], ['{%', '{{', '}}', '%}'], $html);

return $html;
}
}

0 comments on commit 0e3b6cb

Please sign in to comment.