Skip to content

Commit

Permalink
décoder les entités html du sujet des emails avant envoi
Browse files Browse the repository at this point in the history
devrait enfin régler pour de bon seenthis/seenthis_squelettes#211
  • Loading branch information
brunob committed Jul 16, 2019
1 parent 99d0a0d commit 922986c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions seenthis_pipelines.php
Expand Up @@ -21,5 +21,7 @@ function seenthis_facteur_pre_envoi($facteur){
// focer les mails au format txt
$facteur->ContentType = 'text/plain';
$facteur->AltBody = '';
// décoder les entités html du sujet (insérées par typo_guillemets dans post_typo par exemple)
$facteur->Subject = html_entity_decode($facteur->Subject, ENT_QUOTES, $facteur->CharSet);
return $facteur;
}

0 comments on commit 922986c

Please sign in to comment.