fixed bug where html in plaintext emails are interpreted as html.
This commit is contained in:
parent
b1de900ce4
commit
6572548b58
2 changed files with 2 additions and 1 deletions
|
@ -14,6 +14,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/).
|
|||
- fix: restore focus on reload
|
||||
- Added $config['prefer_plaintext'] = true; Prefer HTML or Text and removed toggle buttons.
|
||||
- #33 improve button style
|
||||
- fixed bug where html in plaintext emails are interpreted as html.
|
||||
|
||||
### Added
|
||||
- Added multiple domain support (https://github.com/synox/disposable-mailbox/issues/21)
|
||||
|
|
|
@ -221,7 +221,7 @@ $purifier = new HTMLPurifier($purifier_config);
|
|||
<?php
|
||||
$safeHtml = $purifier->purify($email->textHtml);
|
||||
|
||||
$safeText = $purifier->purify($email->textPlain);
|
||||
$safeText = htmlspecialchars($email->textPlain);
|
||||
$safeText = nl2br($safeText);
|
||||
$safeText = \AutoLinkExtension::auto_link_text($safeText);
|
||||
|
||||
|
|
Loading…
Reference in a new issue