Fix double escaping in ncenterlite summary/content #2445

This commit is contained in:
Kijin Sung 2024-12-10 22:37:51 +09:00
parent 4be2d59b69
commit 955f4b0e29

View file

@ -1916,7 +1916,7 @@ class NcenterliteController extends Ncenterlite
*/
protected static function _createSummary($str): string
{
$str = escape(utf8_normalize_spaces(trim(strip_tags($str)), false));
$str = escape(utf8_normalize_spaces(trim(strip_tags($str))), false);
if (function_exists('mb_strimwidth'))
{
return mb_strimwidth($str, 0, 50, '...', 'UTF-8');
@ -1935,7 +1935,7 @@ class NcenterliteController extends Ncenterlite
*/
protected static function _createContent($str): string
{
$str = escape(utf8_normalize_spaces(trim(strip_tags($str)), false));
$str = escape(utf8_normalize_spaces(trim(strip_tags($str))), false);
if (function_exists('mb_strimwidth'))
{
return mb_strimwidth($str, 0, 200, '...', 'UTF-8');