diff options
author | zotlabs <mike@macgirvin.com> | 2016-12-15 13:45:27 -0800 |
---|---|---|
committer | zotlabs <mike@macgirvin.com> | 2016-12-15 13:45:27 -0800 |
commit | f67acc82cfd3c58f310713601ec1c67f2a5e3ca9 (patch) | |
tree | ea7f43bf80b4d4bef45e318c59466145864df4ca /include/html2plain.php | |
parent | e2f1ce775860b1bb1ce23b9229d85aed4c748aea (diff) | |
download | volse-hubzilla-f67acc82cfd3c58f310713601ec1c67f2a5e3ca9.tar.gz volse-hubzilla-f67acc82cfd3c58f310713601ec1c67f2a5e3ca9.tar.bz2 volse-hubzilla-f67acc82cfd3c58f310713601ec1c67f2a5e3ca9.zip |
html2plain warnings
Diffstat (limited to 'include/html2plain.php')
-rw-r--r-- | include/html2plain.php | 2 |
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(); |