Skip to content

Commit fd40d0c

Browse files
tillkrusstaylorotwell
authored andcommitted
decode html entities in plain text email (#19518)
1 parent e863ff5 commit fd40d0c

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/Illuminate/Mail/Markdown.php

+6-2
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,13 @@ public function renderText($view, array $data = [])
7777
{
7878
$this->view->flushFinderCache();
7979

80-
return new HtmlString(preg_replace("/[\r\n]{2,}/", "\n\n", $this->view->replaceNamespace(
80+
$contents = $this->view->replaceNamespace(
8181
'mail', $this->markdownComponentPaths()
82-
)->make($view, $data)->render()));
82+
)->make($view, $data)->render();
83+
84+
return new HtmlString(
85+
html_entity_decode(preg_replace("/[\r\n]{2,}/", "\n\n", $contents), ENT_QUOTES, 'UTF-8')
86+
);
8387
}
8488

8589
/**

0 commit comments

Comments
 (0)