From f67acc82cfd3c58f310713601ec1c67f2a5e3ca9 Mon Sep 17 00:00:00 2001 From: zotlabs Date: Thu, 15 Dec 2016 13:45:27 -0800 Subject: html2plain warnings --- include/html2plain.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/html2plain.php') diff --git a/include/html2plain.php b/include/html2plain.php index 2f5be7f69..979354079 100644 --- a/include/html2plain.php +++ b/include/html2plain.php @@ -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(); -- cgit v1.2.3