mirror of
https://github.com/retailcrm/Fetch.git
synced 2025-02-06 10:39:21 +03:00
preserve newlines when stripping HTML tags
This commit is contained in:
parent
916ebb13e9
commit
0fc648712d
@ -311,7 +311,8 @@ class Message
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (!isset($this->plaintextMessage) && isset($this->htmlMessage)) {
|
if (!isset($this->plaintextMessage) && isset($this->htmlMessage)) {
|
||||||
$output = strip_tags($this->htmlMessage);
|
$output = preg_replace('/\<br(\s*)?\/?\>/i', PHP_EOL, trim($this->htmlMessage) );
|
||||||
|
$output = strip_tags($output);
|
||||||
|
|
||||||
return $output;
|
return $output;
|
||||||
} elseif (isset($this->plaintextMessage)) {
|
} elseif (isset($this->plaintextMessage)) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user