aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2024-03-10 10:06:15 +0000
committerMario <mario@mariovavti.com>2024-03-10 10:06:15 +0000
commite1b660bfa3c7d76f648349318e1526193b6e482d (patch)
tree9ec9140d8ef901e2c0c77ea92e99029ebc09e5eb /include
parent0036c0cde954bafab0dd541cbb5d4d78645fdf04 (diff)
downloadvolse-hubzilla-e1b660bfa3c7d76f648349318e1526193b6e482d.tar.gz
volse-hubzilla-e1b660bfa3c7d76f648349318e1526193b6e482d.tar.bz2
volse-hubzilla-e1b660bfa3c7d76f648349318e1526193b6e482d.zip
we usually use ENT_COMPAT for content, so stick to this
Diffstat (limited to 'include')
-rw-r--r--include/html2bbcode.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/html2bbcode.php b/include/html2bbcode.php
index c7fe981d0..009c051e6 100644
--- a/include/html2bbcode.php
+++ b/include/html2bbcode.php
@@ -81,9 +81,9 @@ function node2bbcodesub(&$doc, $oldnode, $attributes, $startbb, $endbb)
$newNode->nodeValue = str_replace(
array("\n<", ">\n", "\r", "\n", "\xC3\x82\xC2\xA0"),
array("<", ">", "<br />", " ", ""),
- htmlspecialchars($newNode->nodeValue, ENT_QUOTES, 'UTF-8', false));
+ htmlspecialchars($newNode->nodeValue, ENT_COMPAT, 'UTF-8', false));
- $newNode->nodeValue = preg_replace('=[\s]{2,}=i', " ", htmlspecialchars($newNode->nodeValue, ENT_QUOTES, 'UTF-8', false));
+ $newNode->nodeValue = preg_replace('=[\s]{2,}=i', " ", htmlspecialchars($newNode->nodeValue, ENT_COMPAT, 'UTF-8', false));
}
$oldNode->parentNode->insertBefore($newNode, $oldNode);