html2plain warnings
This commit is contained in:
parent
e2f1ce7758
commit
f67acc82cf
@ -113,7 +113,7 @@ function html2plain($html, $wraplength = 75, $compact = false)
|
|||||||
$xpath = new DomXPath($doc);
|
$xpath = new DomXPath($doc);
|
||||||
$list = $xpath->query("//pre");
|
$list = $xpath->query("//pre");
|
||||||
foreach ($list as $node) {
|
foreach ($list as $node) {
|
||||||
$node->nodeValue = str_replace("\n", "\r", $node->nodeValue);
|
$node->nodeValue = str_replace("\n", "\r", htmlspecialchars($node->nodeValue));
|
||||||
}
|
}
|
||||||
|
|
||||||
$message = $doc->saveHTML();
|
$message = $doc->saveHTML();
|
||||||
|
Reference in New Issue
Block a user