Skip to content

Commit 8c16c19

Browse files
committed
Internal: Revert PHP 8 compatibility improvement in api_htmlentities() as it causes issues filtering HTML tags in HTML titles - refs BT#22321
1 parent 31e06df commit 8c16c19

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main/inc/lib/internationalization.lib.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1207,7 +1207,7 @@ function api_htmlentities($string, $quote_style = ENT_COMPAT, $encoding = 'UTF-8
12071207
break;
12081208
}
12091209

1210-
return htmlspecialchars($string);
1210+
return mb_convert_encoding($string, 'HTML-ENTITIES', 'UTF-8');
12111211
}
12121212

12131213
/**

0 commit comments

Comments
 (0)