mirror of
https://codeberg.org/streams/streams.git
synced 2024-09-20 02:35:12 +00:00
html2plain warnings
This commit is contained in:
parent
e2f1ce7758
commit
f67acc82cf
1 changed files with 1 additions and 1 deletions
|
@ -113,7 +113,7 @@ function html2plain($html, $wraplength = 75, $compact = false)
|
|||
$xpath = new DomXPath($doc);
|
||||
$list = $xpath->query("//pre");
|
||||
foreach ($list as $node) {
|
||||
$node->nodeValue = str_replace("\n", "\r", $node->nodeValue);
|
||||
$node->nodeValue = str_replace("\n", "\r", htmlspecialchars($node->nodeValue));
|
||||
}
|
||||
|
||||
$message = $doc->saveHTML();
|
||||
|
|
Loading…
Reference in a new issue