From e1b660bfa3c7d76f648349318e1526193b6e482d Mon Sep 17 00:00:00 2001 From: Mario Date: Sun, 10 Mar 2024 10:06:15 +0000 Subject: we usually use ENT_COMPAT for content, so stick to this --- include/html2bbcode.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include/html2bbcode.php') 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("<", ">", "
", " ", ""), - 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); -- cgit v1.2.3