mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 10:41:40 +09:00
Fix double escaping in ncenterlite summary/content #2445
This commit is contained in:
parent
4be2d59b69
commit
955f4b0e29
1 changed files with 2 additions and 2 deletions
|
|
@ -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');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue