Skip to content

Commit

Permalink
Merge pull request #3 from nswdpc/maint-remove-entitydecode
Browse files Browse the repository at this point in the history
Remove entity decode
  • Loading branch information
tardinha authored Apr 16, 2024
2 parents d926457 + bbcf798 commit e6324b0
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/Email/StructuredEmail.php
Original file line number Diff line number Diff line change
Expand Up @@ -174,8 +174,6 @@ private function cleanHTMLDocument(string $html) : string {

try {

// it's possible the HTML is entitised, or partially so
$html = html_entity_decode($html, ENT_QUOTES, 'UTF-8');
// clear out all newlines to avoid nl2br fun
$html = str_replace(["\n","\r"], "", $html);

Expand Down

0 comments on commit e6324b0

Please sign in to comment.