aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2016-12-15 13:45:27 -0800
committerzotlabs <mike@macgirvin.com>2016-12-15 13:45:27 -0800
commitf67acc82cfd3c58f310713601ec1c67f2a5e3ca9 (patch)
treeea7f43bf80b4d4bef45e318c59466145864df4ca /include
parente2f1ce775860b1bb1ce23b9229d85aed4c748aea (diff)
downloadvolse-hubzilla-f67acc82cfd3c58f310713601ec1c67f2a5e3ca9.tar.gz
volse-hubzilla-f67acc82cfd3c58f310713601ec1c67f2a5e3ca9.tar.bz2
volse-hubzilla-f67acc82cfd3c58f310713601ec1c67f2a5e3ca9.zip
html2plain warnings
Diffstat (limited to 'include')
-rw-r--r--include/html2plain.php2
1 files changed, 1 insertions, 1 deletions
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();